1
0

METADATA 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  1. Metadata-Version: 2.1
  2. Name: Jinja2
  3. Version: 2.11.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: Documentation, https://jinja.palletsprojects.com/
  12. Project-URL: Code, https://github.com/pallets/jinja
  13. Project-URL: Issue tracker, https://github.com/pallets/jinja/issues
  14. Platform: UNKNOWN
  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: Programming Language :: Python :: 2
  22. Classifier: Programming Language :: Python :: 2.7
  23. Classifier: Programming Language :: Python :: 3
  24. Classifier: Programming Language :: Python :: 3.5
  25. Classifier: Programming Language :: Python :: 3.6
  26. Classifier: Programming Language :: Python :: 3.7
  27. Classifier: Programming Language :: Python :: 3.8
  28. Classifier: Programming Language :: Python :: Implementation :: CPython
  29. Classifier: Programming Language :: Python :: Implementation :: PyPy
  30. Classifier: Topic :: Internet :: WWW/HTTP :: Dynamic Content
  31. Classifier: Topic :: Software Development :: Libraries :: Python Modules
  32. Classifier: Topic :: Text Processing :: Markup :: HTML
  33. Requires-Python: >=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*
  34. Description-Content-Type: text/x-rst
  35. Requires-Dist: MarkupSafe (>=0.23)
  36. Provides-Extra: i18n
  37. Requires-Dist: Babel (>=0.8) ; extra == 'i18n'
  38. Jinja
  39. =====
  40. Jinja is a fast, expressive, extensible templating engine. Special
  41. placeholders in the template allow writing code similar to Python
  42. syntax. Then the template is passed data to render the final document.
  43. It includes:
  44. - Template inheritance and inclusion.
  45. - Define and import macros within templates.
  46. - HTML templates can use autoescaping to prevent XSS from untrusted
  47. user input.
  48. - A sandboxed environment can safely render untrusted templates.
  49. - AsyncIO support for generating templates and calling async
  50. functions.
  51. - I18N support with Babel.
  52. - Templates are compiled to optimized Python code just-in-time and
  53. cached, or can be compiled ahead-of-time.
  54. - Exceptions point to the correct line in templates to make debugging
  55. easier.
  56. - Extensible filters, tests, functions, and even syntax.
  57. Jinja's philosophy is that while application logic belongs in Python if
  58. possible, it shouldn't make the template designer's job difficult by
  59. restricting functionality too much.
  60. Installing
  61. ----------
  62. Install and update using `pip`_:
  63. .. code-block:: text
  64. $ pip install -U Jinja2
  65. .. _pip: https://pip.pypa.io/en/stable/quickstart/
  66. In A Nutshell
  67. -------------
  68. .. code-block:: jinja
  69. {% extends "base.html" %}
  70. {% block title %}Members{% endblock %}
  71. {% block content %}
  72. <ul>
  73. {% for user in users %}
  74. <li><a href="{{ user.url }}">{{ user.username }}</a></li>
  75. {% endfor %}
  76. </ul>
  77. {% endblock %}
  78. Links
  79. -----
  80. - Website: https://palletsprojects.com/p/jinja/
  81. - Documentation: https://jinja.palletsprojects.com/
  82. - Releases: https://pypi.org/project/Jinja2/
  83. - Code: https://github.com/pallets/jinja
  84. - Issue tracker: https://github.com/pallets/jinja/issues
  85. - Test status: https://dev.azure.com/pallets/jinja/_build
  86. - Official chat: https://discord.gg/t6rrQZH