Jinja 2 loader for resource-based apps.
You can setup it like:
jinja_app.loader.Loader(
root_dir='my_templates',
app_subdir='app_temlates',
)
And it will look for template myapp/template.html in the next order:
my_templates/myapp/template.html
path of myapp module + app_templates/template.html
Available params:
root_dir - first source of templates, you can use it to rewrite apps-defined templates, default: templates
app_subdir - templates folder inside apps (python modules or packages), default: templates
lstrip - remove left whitespaces for each template string, default: False
Release files for jinja_app_loader 1.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| jinja_app_loader-1.0.2.tar.gz | 2.8 kB | Details |
Release files / jinja_app_loader-1.0.2.tar.gz
| Download URL | jinja_app_loader-1.0.2.tar.gz |
|---|---|
| Size | 2.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4e0e380f54ddd78bca7002b1d696079a85aec12681840ca0f2bc9cff62b1d478
|
|
BLAKE2b-256 checksum How to use checksums |
09b7930509ce3766717997d03979d82b79908edf6b26778816ee6fddb4a5353f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |