pallets / jinja

A very fast and expressive template engine.

Home Page:https://jinja.palletsprojects.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Docs update re triple quotes and block assignments

nixjdm opened this issue · comments

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.