summaryrefslogtreecommitdiff
path: root/src/rebar_templater.erl
diff options
context:
space:
mode:
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)).