Imported new mustache.erl

This commit is contained in:
Tuncer Ayaz 2012-01-31 21:12:59 +01:00
parent d203ff17d7
commit b6f3a76694

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.