Skip to main content

A Filestorage template loader for Jinja2.

Project description

A Filestorage template loader for Jinja2.


  • Load templates from Django like storage

  • Free software: MIT license


Install jinja2_stl:

pip install jinja2_stl

Basic usage:

from jinja2 import Environment

from storage import Storage

from jinja2_stl.loader import FilestorageTemplateLoader

loader = FilestorageTemplateLoader(storage=Storage(...))
env = Environment(loader=loader)

template = env.get_template('foo/bar.html')

print(template.render(the='variables', go='here'))

Storage must implements Django Storage API and is used as storage parameter in FilestorageTemplateLoader. The template foo/bar.html is loaded from Storage then is used in convenience way.


0.0.1 (2014-08-26)

  • First release on PyPI.

Project details

Download files

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

Source Distribution

jinja2_stl-0.0.1.tar.gz (5.3 kB view hashes)

Uploaded Source

Built Distribution

jinja2_stl-0.0.1-py2.py3-none-any.whl (4.0 kB view hashes)

Uploaded Python 2 Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page