Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
soorena776 opened this issue Jun 22, 2018 · 1 comment

Comments

@soorena776
Copy link

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
Copy link

Ilyes512 commented Oct 4, 2018

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants