Deprecated TEMPLATE_STRING_IF_INVALID.

This commit is contained in:
Aymeric Augustin 2014-12-14 23:13:03 +01:00
parent 3dc01aaaaf
commit d3a982556d
9 changed files with 44 additions and 33 deletions

View file

@ -116,9 +116,9 @@ Use a dot (``.``) to access attributes of a variable.
In the above example, ``{{ section.title }}`` will be replaced with the
``title`` attribute of the ``section`` object.
If you use a variable that doesn't exist, the template system will insert
the value of the :setting:`TEMPLATE_STRING_IF_INVALID` setting, which is set
to ``''`` (the empty string) by default.
If you use a variable that doesn't exist, the template system will insert the
value of the ``string_if_invalid`` option, which is set to ``''`` (the empty
string) by default.
Note that "bar" in a template expression like ``{{ foo.bar }}`` will be
interpreted as a literal string and not using the value of the variable "bar",