Hi all,
Pretty self explanatory, I’m just wondering what indent
does in jinja templates such as
{{ plot_script | indent(4) }}
Thanks!
Hi all,
Pretty self explanatory, I’m just wondering what indent
does in jinja templates such as
{{ plot_script | indent(4) }}
Thanks!
@thomktz That is a Jinja filter, and as the name suggests, it indents all the rendered text by the specified amount. The Jinja docs for indent
are here:
https://jinja.palletsprojects.com/en/3.1.x/templates/#jinja-filters.indent