METADATA 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. Metadata-Version: 2.4
  2. Name: Jinja2
  3. Version: 3.1.6
  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. License-File: LICENSE.txt
  18. Requires-Dist: MarkupSafe>=2.0
  19. Requires-Dist: Babel>=2.7 ; extra == "i18n"
  20. Project-URL: Changes, https://jinja.palletsprojects.com/changes/
  21. Project-URL: Chat, https://discord.gg/pallets
  22. Project-URL: Documentation, https://jinja.palletsprojects.com/
  23. Project-URL: Donate, https://palletsprojects.com/donate
  24. Project-URL: Source, https://github.com/pallets/jinja/
  25. Provides-Extra: i18n
  26. # Jinja
  27. Jinja is a fast, expressive, extensible templating engine. Special
  28. placeholders in the template allow writing code similar to Python
  29. syntax. Then the template is passed data to render the final document.
  30. It includes:
  31. - Template inheritance and inclusion.
  32. - Define and import macros within templates.
  33. - HTML templates can use autoescaping to prevent XSS from untrusted
  34. user input.
  35. - A sandboxed environment can safely render untrusted templates.
  36. - AsyncIO support for generating templates and calling async
  37. functions.
  38. - I18N support with Babel.
  39. - Templates are compiled to optimized Python code just-in-time and
  40. cached, or can be compiled ahead-of-time.
  41. - Exceptions point to the correct line in templates to make debugging
  42. easier.
  43. - Extensible filters, tests, functions, and even syntax.
  44. Jinja's philosophy is that while application logic belongs in Python if
  45. possible, it shouldn't make the template designer's job difficult by
  46. restricting functionality too much.
  47. ## In A Nutshell
  48. ```jinja
  49. {% extends "base.html" %}
  50. {% block title %}Members{% endblock %}
  51. {% block content %}
  52. <ul>
  53. {% for user in users %}
  54. <li><a href="{{ user.url }}">{{ user.username }}</a></li>
  55. {% endfor %}
  56. </ul>
  57. {% endblock %}
  58. ```
  59. ## Donate
  60. The Pallets organization develops and supports Jinja and other popular
  61. packages. In order to grow the community of contributors and users, and
  62. allow the maintainers to devote more time to the projects, [please
  63. donate today][].
  64. [please donate today]: https://palletsprojects.com/donate
  65. ## Contributing
  66. See our [detailed contributing documentation][contrib] for many ways to
  67. contribute, including reporting issues, requesting features, asking or answering
  68. questions, and making PRs.
  69. [contrib]: https://palletsprojects.com/contributing/