tmrts / boilr

:zap: boilerplate template manager that generates files or directories from template repositories
Apache License 2.0
1.73k stars 119 forks source link

Escaping double curly brackets '{{}}' that are not intended to be in the template #73

Open soorena776 opened 6 years ago

soorena776 commented 6 years ago

Hi, Would it be possible to somehow escape non-relevant double curly brackets? One of the files in my template folder is a concourse template file (e.g. _helper.tpl) which has multiple {{some text}} in it, and makes boilr panic. It would be great if there were some workarounds for this.

Btw, boilr is great, thanks for the time and effort!

Ilyes512 commented 6 years ago

You can "solve" this by using golang raw string constant. So in your template you change {{sometext}} to {{`{{sometext}}`}}. Btw I have a hardfork of this project here Added some of the merge requests here and added some requests.