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

Docs update re triple quotes and block assignments #1825

Open
nixjdm opened this issue Mar 21, 2023 · 0 comments
Open

Docs update re triple quotes and block assignments #1825

nixjdm opened this issue Mar 21, 2023 · 0 comments

Comments

@nixjdm
Copy link

nixjdm commented Mar 21, 2023

I think the docs could use a small update to this section https://jinja.palletsprojects.com/en/3.1.x/templates/#block-assignments to mention "triple quotes", to say that they are not supported, and that set / endset is the right method for multline strings and strings that mix single and double quotes that you don't want to escape.

I've seen people wonder how to do that multiple times, and they assume triple quotes work, and don't find it in the docs with a crtl-f. Literally adding the phrase

"triple quotes (''' and """)"

to that section seems like it would help people discover the right way to do this a lot.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant