Welcome to Software Development on Codidact!
Will you help us build our independent community of developers helping developers? We're small and trying to grow. We welcome questions about all aspects of software development, from design to code to QA and more. Got questions? Got answers? Got code you'd like someone to review? Please join us.
Post History
A jinja template expression starts and ends with double curly brackets, which the templating engine consumes. But what if you need a single pair of curly brackets left in the output? Something lik...
Question
jinja
#2: Post edited
How to surround a jinja expression with curly brackets?
- How to surround jinja expression with curly brackets?
#1: Initial revision
How to surround a jinja expression with curly brackets?
A jinja template expression starts and ends with double curly brackets, which the templating engine consumes. But what if you need a single pair of curly brackets left in the output? Something like this: `{{{ jinja_expression }}}` --> `{jinja_output}` Of course the above doesn't work because jinja will think that the two outermost brackets are for it.