METADATA 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. Metadata-Version: 2.0
  2. Name: Jinja2
  3. Version: 2.8
  4. Summary: A small but fast and easy to use stand-alone template engine written in pure python.
  5. Home-page: http://jinja.pocoo.org/
  6. Author: Armin Ronacher
  7. Author-email: armin.ronacher@active-4.com
  8. License: BSD
  9. Platform: UNKNOWN
  10. Classifier: Development Status :: 5 - Production/Stable
  11. Classifier: Environment :: Web Environment
  12. Classifier: Intended Audience :: Developers
  13. Classifier: License :: OSI Approved :: BSD License
  14. Classifier: Operating System :: OS Independent
  15. Classifier: Programming Language :: Python
  16. Classifier: Programming Language :: Python :: 2
  17. Classifier: Programming Language :: Python :: 2.6
  18. Classifier: Programming Language :: Python :: 2.7
  19. Classifier: Programming Language :: Python :: 3
  20. Classifier: Programming Language :: Python :: 3.3
  21. Classifier: Topic :: Internet :: WWW/HTTP :: Dynamic Content
  22. Classifier: Topic :: Software Development :: Libraries :: Python Modules
  23. Classifier: Topic :: Text Processing :: Markup :: HTML
  24. Requires-Dist: MarkupSafe
  25. Provides-Extra: i18n
  26. Requires-Dist: Babel (>=0.8); extra == 'i18n'
  27. Jinja2
  28. ~~~~~~
  29. Jinja2 is a template engine written in pure Python. It provides a
  30. `Django`_ inspired non-XML syntax but supports inline expressions and
  31. an optional `sandboxed`_ environment.
  32. Nutshell
  33. --------
  34. Here a small example of a Jinja template::
  35. {% extends 'base.html' %}
  36. {% block title %}Memberlist{% endblock %}
  37. {% block content %}
  38. <ul>
  39. {% for user in users %}
  40. <li><a href="{{ user.url }}">{{ user.username }}</a></li>
  41. {% endfor %}
  42. </ul>
  43. {% endblock %}
  44. Philosophy
  45. ----------
  46. Application logic is for the controller but don't try to make the life
  47. for the template designer too hard by giving him too few functionality.
  48. For more informations visit the new `Jinja2 webpage`_ and `documentation`_.
  49. .. _sandboxed: http://en.wikipedia.org/wiki/Sandbox_(computer_security)
  50. .. _Django: http://www.djangoproject.com/
  51. .. _Jinja2 webpage: http://jinja.pocoo.org/
  52. .. _documentation: http://jinja.pocoo.org/2/documentation/