Skip to main content

Jinja 2 loader for resource-based apps.

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for jinja_app_loader, version 1.0.2
Filename, size File type Python version Upload date Hashes
Filename, size jinja_app_loader-1.0.2.tar.gz (2.8 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page