From a364e16ed7528f632901ffaf902c86eb8ffb4fd5 Mon Sep 17 00:00:00 2001 From: Tristan Sloughter Date: Tue, 5 May 2015 19:05:46 -0500 Subject: switch mustache imlementation to https://github.com/soranoba/mustache --- src/rebar_templater.erl | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'src/rebar_templater.erl') 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)). -- cgit v1.1