From 58fec57db3d99ffb5aefd0d5751d7bbda6762f66 Mon Sep 17 00:00:00 2001 From: Tristan Sloughter Date: Fri, 8 May 2015 11:45:22 -0500 Subject: use mustache v0.3.0 --- rebar.config | 2 +- rebar.lock | 2 +- src/rlx_util.erl | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/rebar.config b/rebar.config index facbdc8..37f10c5 100644 --- a/rebar.config +++ b/rebar.config @@ -8,7 +8,7 @@ {tag, "v1.3.0"}}}, {mustache, ".*", {git, "https://github.com/soranoba/mustache.git", - {branch, "master"}}}, + {tag, "v0.3.0"}}}, {getopt, "", {git, "https://github.com/jcomellas/getopt.git", {branch, "master"}}}]}. diff --git a/rebar.lock b/rebar.lock index 0f47b93..f9c2bd9 100644 --- a/rebar.lock +++ b/rebar.lock @@ -8,7 +8,7 @@ 0}, {<<"mustache">>, {git,"https://github.com/soranoba/mustache.git", - {ref,"5a15c03e0bcc307dd4165208802b1641dbf88b50"}}, + {ref,"e5401042c66039eef20ee81abc1537ced1f22bc7"}}, 0}, {<<"getopt">>, {git,"https://github.com/jcomellas/getopt.git", diff --git a/src/rlx_util.erl b/src/rlx_util.erl index 4639ffa..2251b4f 100644 --- a/src/rlx_util.erl +++ b/src/rlx_util.erl @@ -156,7 +156,7 @@ render(Template) -> render(Template, []). render(Template, Data) -> - {ok, mustache:render(ec_cnv:to_binary(Template), Data)}. + {ok, mustache:render(ec_cnv:to_binary(Template), Data, [{key_type, atom}])}. load_file(Files, escript, Name) -> {Name, Bin} = lists:keyfind(Name, 1, Files), -- cgit v1.2.3