Skip to main content

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)

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

tornado_jinja2-0.1.0a1.tar.gz (3.4 kB view hashes)

Uploaded Source

Built Distribution

tornado_jinja2-0.1.0a1-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