Keats / kickstart

A scaffolding tool to get new projects up and running quickly
MIT License
354 stars 24 forks source link

Template trigering on ${{ foo.bar }} #55

Closed chevdor closed 2 years ago

chevdor commented 2 years ago

I am testing a template that scaffold a project that happens to contain some github actions. So there is a .github/workflows/foo.yml file. There is current no templating defined in this file so it should be treated as simple text. However, kickstart hits some github actions variables defined as ${{ foo.bar }} and tera/kickstart complains about those "missing" foo.bar variables.

Would it be possible for the Tera to NOT trigger on ${{ }} ? Or could I escape the template to prevent this issue ?

Today, my workaround is to use the ignore config and skip the whole folder but this is rather unconvenient.

chevdor commented 2 years ago

I guess I could rephrase into a question: How could I have a file that will render as ${{ foo.bar }} without Tera thinking it should replace ffo.bar in there.

Keats commented 2 years ago

You can use {% raw %}${{ foo.bar }}{% endraw %}

chevdor commented 2 years ago

That works for me, closing.