METADATA 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  1. Metadata-Version: 2.1
  2. Name: Jinja2
  3. Version: 3.1.2
  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.7
  28. Description-Content-Type: text/x-rst
  29. License-File: LICENSE.rst
  30. Requires-Dist: MarkupSafe (>=2.0)
  31. Provides-Extra: i18n
  32. Requires-Dist: Babel (>=2.7) ; extra == 'i18n'
  33. Jinja
  34. =====
  35. Jinja is a fast, expressive, extensible templating engine. Special
  36. placeholders in the template allow writing code similar to Python
  37. syntax. Then the template is passed data to render the final document.
  38. It includes:
  39. - Template inheritance and inclusion.
  40. - Define and import macros within templates.
  41. - HTML templates can use autoescaping to prevent XSS from untrusted
  42. user input.
  43. - A sandboxed environment can safely render untrusted templates.
  44. - AsyncIO support for generating templates and calling async
  45. functions.
  46. - I18N support with Babel.
  47. - Templates are compiled to optimized Python code just-in-time and
  48. cached, or can be compiled ahead-of-time.
  49. - Exceptions point to the correct line in templates to make debugging
  50. easier.
  51. - Extensible filters, tests, functions, and even syntax.
  52. Jinja's philosophy is that while application logic belongs in Python if
  53. possible, it shouldn't make the template designer's job difficult by
  54. restricting functionality too much.
  55. Installing
  56. ----------
  57. Install and update using `pip`_:
  58. .. code-block:: text
  59. $ pip install -U Jinja2
  60. .. _pip: https://pip.pypa.io/en/stable/getting-started/
  61. In A Nutshell
  62. -------------
  63. .. code-block:: jinja
  64. {% extends "base.html" %}
  65. {% block title %}Members{% endblock %}
  66. {% block content %}
  67. <ul>
  68. {% for user in users %}
  69. <li><a href="{{ user.url }}">{{ user.username }}</a></li>
  70. {% endfor %}
  71. </ul>
  72. {% endblock %}
  73. Donate
  74. ------
  75. The Pallets organization develops and supports Jinja and other popular
  76. packages. In order to grow the community of contributors and users, and
  77. allow the maintainers to devote more time to the projects, `please
  78. donate today`_.
  79. .. _please donate today: https://palletsprojects.com/donate
  80. Links
  81. -----
  82. - Documentation: https://jinja.palletsprojects.com/
  83. - Changes: https://jinja.palletsprojects.com/changes/
  84. - PyPI Releases: https://pypi.org/project/Jinja2/
  85. - Source Code: https://github.com/pallets/jinja/
  86. - Issue Tracker: https://github.com/pallets/jinja/issues/
  87. - Website: https://palletsprojects.com/p/jinja/
  88. - Twitter: https://twitter.com/PalletsTeam
  89. - Chat: https://discord.gg/pallets