Skip to content
Newer
Older
100644 78 lines (67 sloc) 2.34 KB
de478f6 @mitsuhiko [svn] some small updates to make jinja performing better
authored
1 # -*- coding: utf-8 -*-
5829306 @mitsuhiko moved docstring into setup.py, this fixes #297
authored
2 """
203bfcb @mitsuhiko inheritance uses a less awkward hack for contexts now and subclassing…
authored
3 Jinja2
4 ~~~~~~
5829306 @mitsuhiko moved docstring into setup.py, this fixes #297
authored
5
203bfcb @mitsuhiko inheritance uses a less awkward hack for contexts now and subclassing…
authored
6 Jinja2 is a template engine written in pure Python. It provides a
7 `Django`_ inspired non-XML syntax but supports inline expressions and
8 an optional `sandboxed`_ environment.
5829306 @mitsuhiko moved docstring into setup.py, this fixes #297
authored
9
10 Nutshell
11 --------
12
13 Here a small example of a Jinja template::
14
15 {% extends 'base.html' %}
16 {% block title %}Memberlist{% endblock %}
17 {% block content %}
18 <ul>
19 {% for user in users %}
203bfcb @mitsuhiko inheritance uses a less awkward hack for contexts now and subclassing…
authored
20 <li><a href="{{ user.url }}">{{ user.username }}</a></li>
5829306 @mitsuhiko moved docstring into setup.py, this fixes #297
authored
21 {% endfor %}
22 </ul>
23 {% endblock %}
24
25 Philosophy
26 ----------
27
28 Application logic is for the controller but don't try to make the life
29 for the template designer too hard by giving him too few functionality.
30
f4e1fb4 @mitsuhiko small fix for Python 2.4
authored
31 For more informations visit the new `Jinja2 webpage`_ and `documentation`_.
5829306 @mitsuhiko moved docstring into setup.py, this fixes #297
authored
32
33 .. _sandboxed: http://en.wikipedia.org/wiki/Sandbox_(computer_security)
34 .. _Django: http://www.djangoproject.com/
f4e1fb4 @mitsuhiko small fix for Python 2.4
authored
35 .. _Jinja2 webpage: http://jinja.pocoo.org/
1a12c8a @mitsuhiko release trying #3: fixed typos in description :)
authored
36 .. _documentation: http://jinja.pocoo.org/2/documentation/
5829306 @mitsuhiko moved docstring into setup.py, this fixes #297
authored
37 """
447d3d2 @Lukasa Trash debugsupport.
Lukasa authored
38 from setuptools import setup
10c34da @mitsuhiko Documented switch to MarkupSafe
authored
39
de478f6 @mitsuhiko [svn] some small updates to make jinja performing better
authored
40
41 setup(
203bfcb @mitsuhiko inheritance uses a less awkward hack for contexts now and subclassing…
authored
42 name='Jinja2',
56e187c @mitsuhiko This is 2.9.dev
authored
43 version='2.9.dev',
015b0c9 @mitsuhiko some documentation changes
authored
44 url='http://jinja.pocoo.org/',
45 license='BSD',
46 author='Armin Ronacher',
47 author_email='armin.ronacher@active-4.com',
48 description='A small but fast and easy to use stand-alone template '
49 'engine written in pure python.',
bd33f11 @mitsuhiko added C escape and tb_set_next functions
authored
50 long_description=__doc__,
86b5cb5 @mitsuhiko (codename Kong, released on September 12th 2009)
authored
51 # jinja is egg safe. But we hate eggs
015b0c9 @mitsuhiko some documentation changes
authored
52 zip_safe=False,
53 classifiers=[
a9d5922 @mitsuhiko fixed development status classification
authored
54 'Development Status :: 5 - Production/Stable',
de478f6 @mitsuhiko [svn] some small updates to make jinja performing better
authored
55 'Environment :: Web Environment',
56 'Intended Audience :: Developers',
57 'License :: OSI Approved :: BSD License',
58 'Operating System :: OS Independent',
59 'Programming Language :: Python',
62f57f4 @untitaker Add Python classifiers for all supported versions
untitaker authored
60 'Programming Language :: Python :: 2',
61 'Programming Language :: Python :: 2.6',
62 'Programming Language :: Python :: 2.7',
d9599c8 @mitsuhiko Untagged and added python 3 category.
authored
63 'Programming Language :: Python :: 3',
62f57f4 @untitaker Add Python classifiers for all supported versions
untitaker authored
64 'Programming Language :: Python :: 3.3',
8ebf1f9 @mitsuhiko [svn] doc update, setup.py update, added turbogears plugin
authored
65 'Topic :: Internet :: WWW/HTTP :: Dynamic Content',
66 'Topic :: Software Development :: Libraries :: Python Modules',
67 'Topic :: Text Processing :: Markup :: HTML'
68 ],
9d4afa1 @lkarthee Pytest migration initial commit
lkarthee authored
69 packages=['jinja2'],
ee2cb97 @lkarthee Rename testsuite to tests and suggestions
lkarthee authored
70 install_requires=['MarkupSafe'],
2b60fe5 @mitsuhiko fixed setup.py, a type and removed the possibility to use multiple st…
authored
71 extras_require={'i18n': ['Babel>=0.8']},
790b8a8 @mitsuhiko Approaching python3 compatibility
authored
72 include_package_data=True,
f59bac2 @mitsuhiko added first code for parser extensions and moved some code in speedup…
authored
73 entry_points="""
74 [babel.extractors]
7962ce7 @mitsuhiko fixed babel entry point
authored
75 jinja2 = jinja2.ext:babel_extract[i18n]
447d3d2 @Lukasa Trash debugsupport.
Lukasa authored
76 """
de478f6 @mitsuhiko [svn] some small updates to make jinja performing better
authored
77 )
Something went wrong with that request. Please try again.