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
You can separate the curly brackets with spaces, and instruct jinja to remove them afterwards: { {{- jinja_expression -}} }. That way the outer curly brackets are left untouched. The minus signs s...
Answer
#1: Initial revision
You can separate the curly brackets with spaces, and instruct jinja to remove them afterwards: `{ {{- jinja_expression -}} }`. That way the outer curly brackets are left untouched. The minus signs strip whitespace from their respective sides of the template. It's briefly mentioned in the [documentation](https://jinja.palletsprojects.com/en/3.0.x/templates/#whitespace-control).