Skip to content
Myr

README.md

This file

Path

README.md

59 lines · 1.9 KiB · Markdown

Last changed by

Merge branch 'stable'David Lordbefore adoption0514dce

History of this file

Take it

Merge branch 'stable'David Lordbefore adoption0514dce

line 1why, one step back
1<div align="center"><img src="https://raw.githubusercontent.com/pallets/jinja/refs/heads/stable/docs/_static/jinja-name.svg" alt="" height="150"></div>

Merge branch 'stable'David Lordbefore adoption77092a8

line 2why, one step back
2

Merge branch '3.1.x'David Lordbefore adoptionde61312

lines 3–31why, one step back
3# Jinja
45Jinja is a fast, expressive, extensible templating engine. Special6placeholders in the template allow writing code similar to Python7syntax. Then the template is passed data to render the final document.89It includes:1011- Template inheritance and inclusion.12- Define and import macros within templates.13- HTML templates can use autoescaping to prevent XSS from untrusted14 user input.15- A sandboxed environment can safely render untrusted templates.16- AsyncIO support for generating templates and calling async17 functions.18- I18N support with Babel.19- Templates are compiled to optimized Python code just-in-time and20 cached, or can be compiled ahead-of-time.21- Exceptions point to the correct line in templates to make debugging22 easier.23- Extensible filters, tests, functions, and even syntax.2425Jinja's philosophy is that while application logic belongs in Python if26possible, it shouldn't make the template designer's job difficult by27restricting functionality too much.282930## In A Nutshell31

Convert rST code block to Markdown in README (#1981)David Lordbefore adoption8710cab

lines 32–42why, one step back
32```jinja
33{% extends "base.html" %}34{% block title %}Members{% endblock %}35{% block content %}36 <ul>37 {% for user in users %}38 <li><a href="{{ user.url }}">{{ user.username }}</a></li>39 {% endfor %}40 </ul>41{% endblock %}42```

Merge branch '3.1.x'David Lordbefore adoptionde61312

lines 43–51why, one step back
43
44## Donate4546The Pallets organization develops and supports Jinja and other popular47packages. In order to grow the community of contributors and users, and48allow the maintainers to devote more time to the projects, [please49donate today][].5051[please donate today]: https://palletsprojects.com/donate

Merge branch 'stable'David Lordbefore adoption220e67a

lines 52–59why, one step back
52
53## Contributing5455See our [detailed contributing documentation][contrib] for many ways to56contribute, including reporting issues, requesting features, asking or answering57questions, and making PRs.5859[contrib]: https://palletsprojects.com/contributing/