mirror of
https://github.com/django/django.git
synced 2024-12-23 01:25:58 +00:00
Updated docs for multiline templates
This commit is contained in:
parent
b139faab71
commit
98c347b03d
@ -48,7 +48,7 @@ attribute of that backend and any attribute defaults mentioned below are
|
||||
overridden by what's passed by
|
||||
:class:`~django.template.backends.django.DjangoTemplates`.
|
||||
|
||||
.. class:: Engine(dirs=None, app_dirs=False, context_processors=None, debug=False, loaders=None, string_if_invalid='', file_charset='utf-8', libraries=None, builtins=None, autoescape=True)
|
||||
.. class:: Engine(dirs=None, app_dirs=False, context_processors=None, debug=False, loaders=None, string_if_invalid='', file_charset='utf-8', libraries=None, builtins=None, autoescape=True, multiline=False)
|
||||
|
||||
When instantiating an ``Engine`` all arguments must be passed as keyword
|
||||
arguments:
|
||||
@ -139,6 +139,13 @@ overridden by what's passed by
|
||||
Tags and filters from built-in libraries can be used without first calling
|
||||
the :ttag:`{% load %}<load>` tag.
|
||||
|
||||
* ``'multiline'`` controls whether multiline support is enabled in
|
||||
templates. For new projects this is set to `True`, and this is the
|
||||
recommended setting. Multiline support in templates means that newline
|
||||
between `{%` and `%}` in templates is allowed.
|
||||
|
||||
It defaults to ``True``.
|
||||
|
||||
.. staticmethod:: Engine.get_default()
|
||||
|
||||
Returns the underlying :class:`Engine` from the first configured
|
||||
|
Loading…
Reference in New Issue
Block a user