Skip to content

Latest commit

 

History

History
18 lines (11 loc) · 971 Bytes

jinja.rst

File metadata and controls

18 lines (11 loc) · 971 Bytes

Jinja

Processor name: jinja

The jinja processor is a post-processor that is used to undo HTML escaping on Jinja/Django statements (i.e. {% ... %}) that may be present in the document for further processing of the document after conversion. This processor does not do any sanitizing of the Jinja/Django statements and therefore should not be used on untrusted input without sanitation before or after the Verto conversion. This processor should be used with the conditional as the default HTML-template produces Jinja statements.

For example the following document with an if statement:

../../../verto/tests/assets/jinja/doc_example_basic_usage.md

Verto will unescape the Jinja/Django statement and produce the following output:

../../../verto/tests/assets/jinja/doc_example_basic_usage_expected.html