What does `indent` do in JInja templates?

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

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.