diff options
author | Tuncer Ayaz <tuncer.ayaz@gmail.com> | 2012-01-31 21:12:59 +0100 |
---|---|---|
committer | Tuncer Ayaz <tuncer.ayaz@gmail.com> | 2012-01-31 21:12:59 +0100 |
commit | b6f3a766946ffae9397b6afcb5a34c36a123b050 (patch) | |
tree | 160b7d7eb904cc4f5ba1cf4f853ae7081d504892 | |
parent | d203ff17d79a3a3cd6dc01b77e53268483251d22 (diff) |
Imported new mustache.erl
-rw-r--r-- | src/mustache.erl | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mustache.erl b/src/mustache.erl index ff7a21b..ac501a0 100644 --- a/src/mustache.erl +++ b/src/mustache.erl @@ -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. |