1 # -*- coding: utf-8 -*-
4 ez_setup.use_setuptools()
7 from setuptools import setup
13 url = 'http://wsgiarea.pocoo.org/jinja/',
15 author = 'Armin Ronacher',
16 author_email = 'armin.ronacher@active-4.com',
17 description = 'A small but fast and easy to use stand-alone template engine written in pure python.',
18 long_description = '''\
19 Jinja is a small but very fast and easy to use stand-alone template engine
20 written in pure Python.
22 Since version 0.6 it uses a new parser that increases parsing performance
23 a lot by caching the nodelists on disk if wanted.
25 It includes multiple template inheritance and other features like simple
32 This is a small example template in which you can see how Jinja's syntax
35 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
36 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
37 <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
39 <title>My Webpage</title>
43 {% for item in navigation %}
44 <li><a href="{{ item.href }}">{{ item.caption|e }}</a></li>
57 Here is a small example::
59 from jinja import Template, Context, FileSystemLoader
61 t = Template('mytemplate', FileSystemLoader('/path/to/the/templates'))
64 {'href': '#', 'caption': 'Index'},
65 {'href': '#', 'caption': 'Spam'}
67 'variable': '<strong>hello world</strong>'
75 Jinja comes with built-in Unicode support. As a matter of fact, the return
76 value of ``Template.render()`` will be a Python unicode object.
78 You can still output ``str`` objects as well when you encode the result::
80 s = t.render(c).encode('utf-8')
82 For more examples check out the `documentation`_ on the `jinja webpage`_.
84 .. _documentation: http://wsgiarea.pocoo.org/jinja/docs/
85 .. _jinja webpage: http://wsgiarea.pocoo.org/jinja/
87 keywords = 'wsgi web templateengine templates',
91 'Development Status :: 5 - Production/Stable',
92 'Environment :: Web Environment',
93 'Intended Audience :: Developers',
94 'License :: OSI Approved :: BSD License',
95 'Operating System :: OS Independent',
96 'Programming Language :: Python',
97 'Topic :: Internet :: WWW/HTTP',
98 'Topic :: Internet :: WWW/HTTP :: Dynamic Content'