From 671cbd73fe6bd03b10f8177a1c6f51b8da7c8eff Mon Sep 17 00:00:00 2001 From: =?utf8?q?Mat=C4=9Bj=20Volf?= Date: Tue, 9 Mar 2021 20:42:11 +0100 Subject: [PATCH] Fix incorrect docs - line statements have no default --- docs/templates.rst | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/docs/templates.rst b/docs/templates.rst index 3afa71f1..00d998ea 100644 --- a/docs/templates.rst +++ b/docs/templates.rst @@ -54,7 +54,11 @@ configured as follows: * ``{% ... %}`` for :ref:`Statements ` * ``{{ ... }}`` for :ref:`Expressions` to print to the template output * ``{# ... #}`` for :ref:`Comments` not included in the template output -* ``# ... ##`` for :ref:`Line Statements ` + +:ref:`Line Statements and Comments ` are also possible, +though they don't have default prefix characters. To use them, set +``line_statement_prefix`` and ``line_comment_prefix`` when creating the +:class:`~jinja2.Environment`. Template File Extension -- 2.47.2