Skip to content
Myr

Automated merge with ssh://team@pocoo.org/jinja-main

Before adoption: this commit came in with the history the project adopted, so no landing records it.

--HG-- branch : trunk

authored by Armin Ronacher · committed by Armin Ronacher · parents 61a3d31, 5829306 · Browse files · 1 file+54 added−3 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+54 added−3 removed

  • other:+54 added−3 removed

1 file+54 added−3 removed

modified:setup.py+54 added-3 removed
1# -*- coding: utf-8 -*-2import jinja2"""3jinja4~~~~~56Jinja is a `sandboxed`_ template engine written in pure Python. It7provides a `Django`_ like non-XML syntax and compiles templates into8executable python code. It's basically a combination of Django templates9and python code.1011Nutshell12--------1314Here a small example of a Jinja template::1516 {% extends 'base.html' %}17 {% block title %}Memberlist{% endblock %}18 {% block content %}19 <ul>20 {% for user in users %}21 <li><a href="{{ user.url|e }}">{{ user.username|e }}</a></li>22 {% endfor %}23 </ul>24 {% endblock %}2526Philosophy27----------2829Application logic is for the controller but don't try to make the life30for the template designer too hard by giving him too few functionality.3132For more informations visit the new `jinja webpage`_ and `documentation`_.3334Note35----3637This is the Jinja 1.0 release which is completely incompatible with the38old "pre 1.0" branch. The old branch will still receive security updates39and bugfixes but the 1.0 branch will be the only version that receives40support.4142If you have an application that uses Jinja 0.9 and won't be updated in43the near future the best idea is to ship a Jinja 0.9 checkout together44with the application.4546The `Jinja tip`_ is installable via `easy_install` with ``easy_install47Jinja==dev``.4849.. _sandboxed: http://en.wikipedia.org/wiki/Sandbox_(computer_security)50.. _Django: http://www.djangoproject.com/51.. _jinja webpage: http://jinja.pocoo.org/52.. _documentation: http://jinja.pocoo.org/documentation/index.html53.. _Jinja tip: http://dev.pocoo.org/hg/jinja-main/archive/tip.tar.gz#egg=Jinja-dev54"""55import os56import sys57import ez_setup58ez_setup.use_setuptools()5960from distutils.command.build_ext import build_ext61from distutils.errors import CCompilerError, DistutilsError62from setuptools import setup, Extension, Feature11from inspect import getdoc636465def list_files(path):66 for fn in os.listdir(path):
44 unmodified lines
111 author='Armin Ronacher',112 author_email='armin.ronacher@active-4.com',113 description='A small but fast and easy to use stand-alone template '114 'engine written in pure python.',64 long_description = getdoc(jinja),115 long_description = __doc__,116 # jinja is egg safe. But because we distribute the documentation117 # in form of html and txt files it's a better idea to extract the files118 zip_safe=False,119 classifiers=[
39 unmodified lines