Difference between revisions of "Jinja2"
Jump to navigation
Jump to search
Line 7: | Line 7: | ||
* [https://stackoverflow.com/questions/50058873/jinja2-include-file-outside-of-search-path-doesnt-work Jinja2 {% include file %} outside of search path doesn't work - 2 K Views] | * [https://stackoverflow.com/questions/50058873/jinja2-include-file-outside-of-search-path-doesnt-work Jinja2 {% include file %} outside of search path doesn't work - 2 K Views] | ||
* [https://stackoverflow.com/questions/14276829/html-templating-using-jinja2-lost/14276993#14276993 https://stackoverflow.com/questions/14276829/html-templating-using-jinja2-lost/14276993#14276993 - 7 K Views] | * [https://stackoverflow.com/questions/14276829/html-templating-using-jinja2-lost/14276993#14276993 https://stackoverflow.com/questions/14276829/html-templating-using-jinja2-lost/14276993#14276993 - 7 K Views] | ||
+ | == Environment == | ||
− | = Loaders = | + | == Loaders == |
*https://jinja.palletsprojects.com/en/master/api/#loaders | *https://jinja.palletsprojects.com/en/master/api/#loaders | ||
* http://code.nabla.net/doc/jinja2/api/jinja2/loaders/jinja2.loaders.BaseLoader.html | * http://code.nabla.net/doc/jinja2/api/jinja2/loaders/jinja2.loaders.BaseLoader.html | ||
+ | * http://code.nabla.net/doc/jinja2/api/jinja2/loaders/jinja2.loaders.ChoiceLoader.html | ||
* http://code.nabla.net/doc/jinja2/api/jinja2/loaders/jinja2.loaders.FileSystemLoader.html | * http://code.nabla.net/doc/jinja2/api/jinja2/loaders/jinja2.loaders.FileSystemLoader.html | ||
* http://code.nabla.net/doc/jinja2/api/jinja2/loaders/jinja2.loaders.ModuleLoader.html | * http://code.nabla.net/doc/jinja2/api/jinja2/loaders/jinja2.loaders.ModuleLoader.html | ||
* http://code.nabla.net/doc/jinja2/api/jinja2/loaders/jinja2.loaders.PackageLoader.html | * http://code.nabla.net/doc/jinja2/api/jinja2/loaders/jinja2.loaders.PackageLoader.html | ||
* https://www.kite.com/python/docs/flask.templating.DispatchingJinjaLoader [https://github.com/pallets/flask/blob/ecb3450f19d3d817b4b857bb5831b309131b37e1/src/flask/templating.py#L39 source code] | * https://www.kite.com/python/docs/flask.templating.DispatchingJinjaLoader [https://github.com/pallets/flask/blob/ecb3450f19d3d817b4b857bb5831b309131b37e1/src/flask/templating.py#L39 source code] |
Revision as of 13:30, 8 April 2021
Template Handling
Stackoverflow Questions
- How to load jinja template directly from filesystem - 83 K Views
- Jinja2 {% include file %} outside of search path doesn't work - 2 K Views
- Flask: Template in Blueprint Inherit from Template in App? - 3 K Views
- Jinja2 {% include file %} outside of search path doesn't work - 2 K Views
- https://stackoverflow.com/questions/14276829/html-templating-using-jinja2-lost/14276993#14276993 - 7 K Views
Environment
Loaders
- http://code.nabla.net/doc/jinja2/api/jinja2/loaders/jinja2.loaders.BaseLoader.html
- http://code.nabla.net/doc/jinja2/api/jinja2/loaders/jinja2.loaders.ChoiceLoader.html
- http://code.nabla.net/doc/jinja2/api/jinja2/loaders/jinja2.loaders.FileSystemLoader.html
- http://code.nabla.net/doc/jinja2/api/jinja2/loaders/jinja2.loaders.ModuleLoader.html
- http://code.nabla.net/doc/jinja2/api/jinja2/loaders/jinja2.loaders.PackageLoader.html
- https://www.kite.com/python/docs/flask.templating.DispatchingJinjaLoader source code