METADATA 2.6 KB

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