diff options
author | David Lord <davidism@gmail.com> | 2021-04-05 14:27:12 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-05 14:27:12 -0700 |
commit | 4a941cab0ddff1ce58f4c6634e22a7659fd0648b (patch) | |
tree | 2290132b1cd37183c1d97f449b3063009cdde224 | |
parent | eaf0cca37baddfdbd065924194a948199186f397 (diff) | |
parent | 671cbd73fe6bd03b10f8177a1c6f51b8da7c8eff (diff) | |
download | jinja2-4a941cab0ddff1ce58f4c6634e22a7659fd0648b.tar.gz |
Merge pull request #1367 from mvolfik/docs-fix
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 |