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 lines
2.2 KiB

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