Skip to main content

A Filestorage template loader for Jinja2.

Project description

https://badge.fury.io/py/jinja2-stl.png https://travis-ci.org/s-m-i-t-a/jinja2-stl.png?branch=master https://coveralls.io/repos/s-m-i-t-a/jinja2-stl/badge.png

A Filestorage template loader for Jinja2.

Features

  • Load templates from Django like storage

  • Free software: MIT license

Quickstart

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.

History

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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 2Python 3

File details

Details for the file jinja2_stl-0.0.1.tar.gz.

File metadata

  • Download URL: jinja2_stl-0.0.1.tar.gz
  • Upload date:
  • Size: 5.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for jinja2_stl-0.0.1.tar.gz
Algorithm Hash digest
SHA256 af264bdb0b2be3c48bc6f32cd750e3950920920e965080e1e941991847924234
MD5 789933ee5d5835a4ffd4f0648beb8f3b
BLAKE2b-256 2a1453e6cba8f23f9dd782a04824e23b628b0d3d5cdc50663a647c02ea114fd5

See more details on using hashes here.

File details

Details for the file jinja2_stl-0.0.1-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for jinja2_stl-0.0.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 797f907aa6d2c4a15d40eb4dbc33b78878ff5f9dc3784586a0ec577fe0840d1a
MD5 2186f777f94b5578ea31eaa877e0fd82
BLAKE2b-256 7fffd38197c3bf76b11744e3fc37a6306c5b01c253e7295805601b292a6c8089

See more details on using hashes here.

Supported by

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