diff options
author | Matěj Volf <mat.volfik@gmail.com> | 2021-03-09 20:42:11 +0100 |
---|---|---|
committer | David Lord <davidism@gmail.com> | 2021-04-05 14:26:14 -0700 |
commit | 671cbd73fe6bd03b10f8177a1c6f51b8da7c8eff (patch) | |
tree | 2290132b1cd37183c1d97f449b3063009cdde224 | |
parent | eaf0cca37baddfdbd065924194a948199186f397 (diff) | |
download | jinja2-671cbd73fe6bd03b10f8177a1c6f51b8da7c8eff.tar.gz |
Fix incorrect docs - line statements have no default
-rw-r--r-- | docs/templates.rst | 6 |
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 |