Guest User

Untitled

a guest
Apr 26th, 2018
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. -module(simple).
  2. -compile(export_all).
  3.  
  4. name() ->
  5. "Tom".
  6.  
  7. value() ->
  8. 10000.
  9.  
  10. taxed_value() ->
  11. value() - (value() * 0.4).
  12.  
  13. in_ca() ->
  14. true.
  15.  
  16. %%---------------------------------------------------------------------------
  17.  
  18. start() ->
  19. code:add_patha(".."),
  20. Output = mustache:render(simple, "simple.mustache"),
  21. io:format(Output, []).
Add Comment
Please, Sign In to add comment