]> git.ipfire.org Git - thirdparty/jinja.git/commitdiff
Fix incorrect docs - line statements have no default 1367/head
authorMatěj Volf <mat.volfik@gmail.com>
Tue, 9 Mar 2021 19:42:11 +0000 (20:42 +0100)
committerDavid Lord <davidism@gmail.com>
Mon, 5 Apr 2021 21:26:14 +0000 (14:26 -0700)
docs/templates.rst

index 3afa71f109fe9ced2b817ceaeaac63d0caca20b6..00d998ead3665d802ea4506b84868ae8db28443f 100644 (file)
@@ -54,7 +54,11 @@ configured as follows:
 * ``{% ... %}`` for :ref:`Statements <list-of-control-structures>`
 * ``{{ ... }}`` for :ref:`Expressions` to print to the template output
 * ``{# ... #}`` for :ref:`Comments` not included in the template output
-* ``#  ... ##`` for :ref:`Line Statements <line-statements>`
+
+:ref:`Line Statements and Comments <line-statements>` 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