From: Matěj Volf Date: Tue, 9 Mar 2021 19:42:11 +0000 (+0100) Subject: Fix incorrect docs - line statements have no default X-Git-Tag: 3.0.0rc1~11^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F1367%2Fhead;p=thirdparty%2Fjinja.git Fix incorrect docs - line statements have no default --- 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