diff options
author | Fred Hebert <mononcqc@ferd.ca> | 2015-05-05 21:18:04 -0400 |
---|---|---|
committer | Fred Hebert <mononcqc@ferd.ca> | 2015-05-05 21:18:04 -0400 |
commit | 5cf005d3a63608ff4a9a7151d8461f360c86cfbb (patch) | |
tree | b32082ac8557d2208676507be4a2697f205c2431 /src/rebar_templater.erl | |
parent | 0883a6eca754f5442b8c9d273d7fc0be1b768dec (diff) | |
parent | 275bdd6c04089353e879527e273b4a36cdff0218 (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.erl | 6 |
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)). |