METADATA 3.2 KB

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