summaryrefslogtreecommitdiff
path: root/src/rebar_templater.erl
diff options
context:
space:
mode:
authorFred Hebert <mononcqc@ferd.ca>2015-05-05 21:18:04 -0400
committerFred Hebert <mononcqc@ferd.ca>2015-05-05 21:18:04 -0400
commit5cf005d3a63608ff4a9a7151d8461f360c86cfbb (patch)
treeb32082ac8557d2208676507be4a2697f205c2431 /src/rebar_templater.erl
parent0883a6eca754f5442b8c9d273d7fc0be1b768dec (diff)
parent275bdd6c04089353e879527e273b4a36cdff0218 (diff)
Merge pull request #392 from tsloughter/mustache2
switch mustache imlementation to https://github.com/soranoba/mustache
Diffstat (limited to 'src/rebar_templater.erl')
-rw-r--r--src/rebar_templater.erl6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/rebar_templater.erl b/src/rebar_templater.erl
index 0a9a07c..1bd4e09 100644
--- a/src/rebar_templater.erl
+++ b/src/rebar_templater.erl
@@ -380,8 +380,4 @@ write_file(Output, Data, Force) ->
%% Render a binary to a string, using mustache and the specified context
%%
render(Bin, Context) ->
- %% Be sure to escape any double-quotes before rendering...
- ReOpts = [global, {return, list}],
- Str0 = re:replace(Bin, "\\\\", "\\\\\\", ReOpts),
- Str1 = re:replace(Str0, "\"", "\\\\\"", ReOpts),
- rebar_mustache:render(Str1, dict:from_list(Context)).
+ rebar_mustache:render(ec_cnv:to_binary(Bin), dict:from_list(Context)).