summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Lord <davidism@gmail.com>2021-04-05 14:27:12 -0700
committerGitHub <noreply@github.com>2021-04-05 14:27:12 -0700
commit4a941cab0ddff1ce58f4c6634e22a7659fd0648b (patch)
tree2290132b1cd37183c1d97f449b3063009cdde224
parenteaf0cca37baddfdbd065924194a948199186f397 (diff)
parent671cbd73fe6bd03b10f8177a1c6f51b8da7c8eff (diff)
downloadjinja2-4a941cab0ddff1ce58f4c6634e22a7659fd0648b.tar.gz
Merge pull request #1367 from mvolfik/docs-fix
line statements have no default
-rw-r--r--docs/templates.rst6
1 files changed, 5 insertions, 1 deletions
diff --git a/docs/templates.rst b/docs/templates.rst
index 3afa71f..00d998e 100644
--- a/docs/templates.rst
+++ b/docs/templates.rst
@@ -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