aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTristan Sloughter <[email protected]>2015-05-08 11:45:22 -0500
committerTristan Sloughter <[email protected]>2015-05-08 11:45:22 -0500
commit58fec57db3d99ffb5aefd0d5751d7bbda6762f66 (patch)
treed18fb57579cb3e58984599bdb2c926db9314d294
parent88d1f29257869b0de9369881236477163804125a (diff)
downloadrelx-58fec57db3d99ffb5aefd0d5751d7bbda6762f66.tar.gz
relx-58fec57db3d99ffb5aefd0d5751d7bbda6762f66.tar.bz2
relx-58fec57db3d99ffb5aefd0d5751d7bbda6762f66.zip
use mustache v0.3.0
-rw-r--r--rebar.config2
-rw-r--r--rebar.lock2
-rw-r--r--src/rlx_util.erl2
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),