templating templates??

Morning

I need to push out a Go template file that needs some environment
specific settings, so tried to template the template
(yes, a bit 'yo dawg' i know).

Of course this blows up as both jinja2 and go templating use double
mustaches '{{ foo }}' .

Has anyone got a workaround for this?

Maybe changing the jinja2 delimiters just for this one file?

Never mind, just found {% raw %} ..... {% endraw %}

Is this what you’re looking for: http://jinja.pocoo.org/docs/dev/templates/#escaping?

Either use {% raw % } or {{ ‘{{’ }} depending on your use case.