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

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

Docs update re triple quotes and block assignments #1825

nixjdm opened this issue Mar 21, 2023 · 0 comments
Labels
Milestone

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.

@davidism davidism added the docs label Dec 20, 2024
@davidism davidism added this to the 3.1.5 milestone Dec 20, 2024
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jan 4, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants