jinja2 Engine for tornado web framework
Project description
Integrate Jinja2 into Tornado Framework
======================================
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 it**:
Import the jinja2 loader to your project
.. code-block:: python
from tornado_jinja2 import Jinja2Loader
Pass the jinja2 loader instance to the "template_loader" parameter which for "tornado.web.Application"
.. code-block:: python
import tornado.web
jinja2loader = Jinja2Loader('templates_path')
settings = dict(template_loader=jinja2loader)
application = tornado.web.Application(handler=[],
**settings)
======================================
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 it**:
Import the jinja2 loader to your project
.. code-block:: python
from tornado_jinja2 import Jinja2Loader
Pass the jinja2 loader instance to the "template_loader" parameter which for "tornado.web.Application"
.. code-block:: python
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.0a1.tar.gz
(3.4 kB
view hashes)
Built Distribution
Close
Hashes for tornado_jinja2-0.1.0a1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 402ca7d3b7728eea8638df785df105e49e516eca6e3d92f7d8d80f8364629785 |
|
MD5 | abfee208704d78404820060bca1de2ea |
|
BLAKE2b-256 | ea008bfa8c2825509faac12081d2454aec3af346f4f796195112a4722c802c75 |