Browse Source

Imported new mustache.erl

pull/3/head
Tuncer Ayaz 13 years ago
parent
commit
b6f3a76694
1 changed files with 5 additions and 0 deletions
  1. +5
    -0
      src/mustache.erl

+ 5
- 0
src/mustache.erl View File

@ -226,4 +226,9 @@ simple_test() ->
Result = render("Hello {{name}}!", Ctx),
?assertEqual("Hello world!", Result).
integer_values_too_test() ->
Ctx = dict:from_list([{name, "Chris"}, {value, 10000}]),
Result = render("Hello {{name}}~nYou have just won ${{value}}!", Ctx),
?assertEqual("Hello Chris~nYou have just won $10000!", Result).
-endif.

Loading…
Cancel
Save