boilr icon indicating copy to clipboard operation
boilr copied to clipboard

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

Open soorena776 opened this issue 6 years ago • 1 comments

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!

soorena776 avatar Jun 22 '18 15:06 soorena776

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.

Ilyes512 avatar Oct 04 '18 18:10 Ilyes512