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.

113 lines
3.4KB

  1. Metadata-Version: 2.1
  2. Name: Jinja2
  3. Version: 3.0.1
  4. Summary: A very fast and expressive template engine.
  5. Home-page: https://palletsprojects.com/p/jinja/
  6. Author: Armin Ronacher
  7. Author-email: armin.ronacher@active-4.com
  8. Maintainer: Pallets
  9. Maintainer-email: contact@palletsprojects.com
  10. License: BSD-3-Clause
  11. Project-URL: Donate, https://palletsprojects.com/donate
  12. Project-URL: Documentation, https://jinja.palletsprojects.com/
  13. Project-URL: Changes, https://jinja.palletsprojects.com/changes/
  14. Project-URL: Source Code, https://github.com/pallets/jinja/
  15. Project-URL: Issue Tracker, https://github.com/pallets/jinja/issues/
  16. Project-URL: Twitter, https://twitter.com/PalletsTeam
  17. Project-URL: Chat, https://discord.gg/pallets
  18. Platform: UNKNOWN
  19. Classifier: Development Status :: 5 - Production/Stable
  20. Classifier: Environment :: Web Environment
  21. Classifier: Intended Audience :: Developers
  22. Classifier: License :: OSI Approved :: BSD License
  23. Classifier: Operating System :: OS Independent
  24. Classifier: Programming Language :: Python
  25. Classifier: Topic :: Internet :: WWW/HTTP :: Dynamic Content
  26. Classifier: Topic :: Text Processing :: Markup :: HTML
  27. Requires-Python: >=3.6
  28. Description-Content-Type: text/x-rst
  29. Requires-Dist: MarkupSafe (>=2.0)
  30. Provides-Extra: i18n
  31. Requires-Dist: Babel (>=2.7) ; extra == 'i18n'
  32. Jinja
  33. =====
  34. Jinja is a fast, expressive, extensible templating engine. Special
  35. placeholders in the template allow writing code similar to Python
  36. syntax. Then the template is passed data to render the final document.
  37. It includes:
  38. - Template inheritance and inclusion.
  39. - Define and import macros within templates.
  40. - HTML templates can use autoescaping to prevent XSS from untrusted
  41. user input.
  42. - A sandboxed environment can safely render untrusted templates.
  43. - AsyncIO support for generating templates and calling async
  44. functions.
  45. - I18N support with Babel.
  46. - Templates are compiled to optimized Python code just-in-time and
  47. cached, or can be compiled ahead-of-time.
  48. - Exceptions point to the correct line in templates to make debugging
  49. easier.
  50. - Extensible filters, tests, functions, and even syntax.
  51. Jinja's philosophy is that while application logic belongs in Python if
  52. possible, it shouldn't make the template designer's job difficult by
  53. restricting functionality too much.
  54. Installing
  55. ----------
  56. Install and update using `pip`_:
  57. .. code-block:: text
  58. $ pip install -U Jinja2
  59. .. _pip: https://pip.pypa.io/en/stable/quickstart/
  60. In A Nutshell
  61. -------------
  62. .. code-block:: jinja
  63. {% extends "base.html" %}
  64. {% block title %}Members{% endblock %}
  65. {% block content %}
  66. <ul>
  67. {% for user in users %}
  68. <li><a href="{{ user.url }}">{{ user.username }}</a></li>
  69. {% endfor %}
  70. </ul>
  71. {% endblock %}
  72. Donate
  73. ------
  74. The Pallets organization develops and supports Jinja and other popular
  75. packages. In order to grow the community of contributors and users, and
  76. allow the maintainers to devote more time to the projects, `please
  77. donate today`_.
  78. .. _please donate today: https://palletsprojects.com/donate
  79. Links
  80. -----
  81. - Documentation: https://jinja.palletsprojects.com/
  82. - Changes: https://jinja.palletsprojects.com/changes/
  83. - PyPI Releases: https://pypi.org/project/Jinja2/
  84. - Source Code: https://github.com/pallets/jinja/
  85. - Issue Tracker: https://github.com/pallets/jinja/issues/
  86. - Website: https://palletsprojects.com/p/jinja/
  87. - Twitter: https://twitter.com/PalletsTeam
  88. - Chat: https://discord.gg/pallets