boilr
boilr copied to clipboard
Escaping double curly brackets '{{}}' that are not intended to be in the template
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!
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.