mirror of
https://github.com/correl/rebar.git
synced 2024-12-18 03:00:17 +00:00
Imported new mustache.erl
This commit is contained in:
parent
d203ff17d7
commit
b6f3a76694
1 changed files with 5 additions and 0 deletions
|
@ -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…
Reference in a new issue