jinja2 Engine for tornado web framework
Project description
This tool make you have the ability that using jiaja2 Template Engine with Tornado Web Framework. It will instead of Tornado Templates.
How to use:
Import the jinja2 loader to your project
from tornado_jinja2 import Jinja2Loader
Pass the jinja2 loader instance to the “template_loader” parameter which for “tornado.web.Application”
import tornado.web
jinja2loader = Jinja2Loader('templates_path')
settings = dict(template_loader=jinja2loader)
application = tornado.web.Application(handler=[],
**settings)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
tornado_jinja2-0.1.1.tar.gz
(3.4 kB
view hashes)
Built Distribution
Close
Hashes for tornado_jinja2-0.1.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | df7dca9eb0a3daf2e51f6a439b6fac9e1698239108e58246ba8d31086c1a8bb4 |
|
MD5 | 3d8c35249608fc3a9ee7cdd1a394a8a2 |
|
BLAKE2b-256 | ca96d58fd5967dd4c00eec080548646f34fd36ca0e5cc6c2137882d3303f575f |