Why not just use {% include ... %} ?
See original GitHub issueCan you comment on why this is better than using {% include ... %}
?
https://jinja.palletsprojects.com/en/3.0.x/templates/#include
Issue Analytics
- State:
- Created 2 years ago
- Comments:20 (11 by maintainers)
Top Results From Across the Web
c++ - Why should we use "#include<iostream>" while we are ...
As a way of keeping things organized, c++ provides namespaces. All of the standard library is defined within the namespace called std ....
Read more >What are the benefits of not including other header files in a ...
It is best (like all rules of thumb there are exceptions) to include only the things you explicitly need. Anything that is not...
Read more >Why make a header file? Why can't we just include .c file?
Two situations: One, you have one big file you've written perfectly, that takes time to compile, and you want to include it somewhere....
Read more >Is it wrong to include C/C++ standard libraries that are not ...
When more header files are included ,only the compile time varies but not the execution time. Compilation is a one time process ,hence...
Read more >Include what you use - GitHub
This puts us in a state where every file includes the headers it needs to declare the symbols that it uses. When every...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
With jinja, I believe you can:
Hi @nickleman
That will work I think. But it’s just more clumsy. Not too bad for one variable, the example we’ve been discussing needs two:
What if there is more?
Does that still feel better than:
To me, definitely not. But if you don’t like how that looks, then go for the set multiple variables + include. It’s a choice for sure, not a requirement to use this library.