From b6f3a766946ffae9397b6afcb5a34c36a123b050 Mon Sep 17 00:00:00 2001 From: Tuncer Ayaz Date: Tue, 31 Jan 2012 21:12:59 +0100 Subject: Imported new mustache.erl --- src/mustache.erl | 5 +++++ 1 file changed, 5 insertions(+) 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. -- cgit v1.1