Sophie

Sophie

distrib > Fedora > 14 > x86_64 > media > updates > by-pkgid > 2556da2269866dd3f9fa5bff4e962686 > files > 12

erlang-mustache-0.1.0-2.fc14.x86_64.rpm

-module(simple).
-compile(export_all).

name() ->
  "Tom".

value() ->
  10000.

taxed_value() ->
  value() - (value() * 0.4).

in_ca() ->
  true.

%%---------------------------------------------------------------------------

start() ->
  code:add_patha(".."),
  Ctx = dict:from_list([{name, "TPW"}]),
  Output = mustache:render(simple, "simple.mustache", Ctx),
  io:format(Output, []).