{ "info": { "author": "Yun Xu", "author_email": "yunxu1992@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "License :: OSI Approved :: MIT License", "Operating System :: MacOS", "Operating System :: POSIX :: Linux", "Programming Language :: Python", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.5", "Topic :: System :: Software Distribution" ], "description": "jinja2-sanic\n============\n\n.. image:: https://travis-ci.org/yunstanford/jinja2-sanic.svg?branch=master\n :alt: build status\n :target: https://travis-ci.org/yunstanford/jinja2-sanic\n\n.. image:: https://coveralls.io/repos/github/yunstanford/jinja2-sanic/badge.svg?branch=master\n :alt: coverage status\n :target: https://coveralls.io/github/yunstanford/jinja2-sanic?branch=master\n\n\na jinja2 template renderer for Sanic. It supports:\n\n* function based web handlers\n* class-based views\n* decoractors for convenient useage\n\n\nYou can find out more here:\n\nhttp://jinja2-sanic.readthedocs.io/en/latest/\n\n\n-------\nInstall\n-------\n\n.. code::\n\n pip3 install jinja2-sanic\n\n\n-----------\nQuick Start\n-----------\n\n.. code-block:: python\n\n from sanic import Sanic\n from sanic.views import HTTPMethodView\n from sanic.exceptions import ServerError\n\n app = Sanic(\"sanic_jinja2_render\")\n\n # Setup jinja2 environment\n template = \"