Sophie

Sophie

distrib > Mageia > 6 > i586 > by-pkgid > 5fc0659a7cb6cb9c4078e6b54c87e163 > files > 13

erlang-mustache-0.1.1-4.mga6.i586.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, []).