You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

68 line
2.2KB

  1. Metadata-Version: 2.1
  2. Name: Jinja2
  3. Version: 2.10.1
  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: Programming Language :: Python :: 3.4
  22. Classifier: Programming Language :: Python :: 3.5
  23. Classifier: Programming Language :: Python :: 3.6
  24. Classifier: Topic :: Internet :: WWW/HTTP :: Dynamic Content
  25. Classifier: Topic :: Software Development :: Libraries :: Python Modules
  26. Classifier: Topic :: Text Processing :: Markup :: HTML
  27. Requires-Dist: MarkupSafe (>=0.23)
  28. Provides-Extra: i18n
  29. Requires-Dist: Babel (>=0.8) ; extra == 'i18n'
  30. Jinja2
  31. ~~~~~~
  32. Jinja2 is a template engine written in pure Python. It provides a
  33. `Django`_ inspired non-XML syntax but supports inline expressions and
  34. an optional `sandboxed`_ environment.
  35. Nutshell
  36. --------
  37. Here a small example of a Jinja template::
  38. {% extends 'base.html' %}
  39. {% block title %}Memberlist{% endblock %}
  40. {% block content %}
  41. <ul>
  42. {% for user in users %}
  43. <li><a href="{{ user.url }}">{{ user.username }}</a></li>
  44. {% endfor %}
  45. </ul>
  46. {% endblock %}
  47. Philosophy
  48. ----------
  49. Application logic is for the controller but don't try to make the life
  50. for the template designer too hard by giving him too few functionality.
  51. For more informations visit the new `Jinja2 webpage`_ and `documentation`_.
  52. .. _sandboxed: https://en.wikipedia.org/wiki/Sandbox_(computer_security)
  53. .. _Django: https://www.djangoproject.com/
  54. .. _Jinja2 webpage: http://jinja.pocoo.org/
  55. .. _documentation: http://jinja.pocoo.org/2/documentation/