Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make ease of use update to template documentation #1915

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
7 changes: 4 additions & 3 deletions docs/templates.rst
Expand Up @@ -1084,9 +1084,10 @@ Block Assignments

Starting with Jinja 2.8, it's possible to also use block assignments to
capture the contents of a block into a variable name. This can be useful
in some situations as an alternative for macros. In that case, instead of
using an equals sign and a value, you just write the variable name and then
everything until ``{% endset %}`` is captured.
in some situations as an alternative for macros. It can also be used to create
multiline strings instead of triple quotes (''' and """), which Jinja does not
support. In that case, instead of using an equals sign and a value, you just
write the variable name and then everything until ``{% endset %}`` is captured.

Example::

Expand Down