Skip to content

Commit

Permalink
docs: fix incorrect description
Browse files Browse the repository at this point in the history
Undefined values can not be used in Parser.
  • Loading branch information
kenjis committed Dec 19, 2023
1 parent a28caae commit 5d9dc9b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions user_guide_src/source/outgoing/view_parser.rst
Original file line number Diff line number Diff line change
Expand Up @@ -371,8 +371,7 @@ date format (Y-m-d) A PHP **date**-compatible formatting string.
date_modify value to add A **strtotime** compatible string to modify the date, { v|date_modify(+1 day) }
/ subtract like ``+5 day`` or ``-1 week``.

default default value Displays the default value if the variable is empty or { v|default(just in case) }
undefined.
default default value Displays the default value if the variable is `empty()`_. { v|default(just in case) }

esc html, attr, Specifies the context to escape the data. { v|esc(attr) }
css, js
Expand Down Expand Up @@ -419,6 +418,8 @@ title Displays a "title case" version of the string
upper Displays the string in all uppercase. { v|upper }
================ ================= =========================================================== ======================================

.. _empty(): https://www.php.net/manual/en/function.empty.php

See `PHP's NumberFormatter <https://www.php.net/manual/en/numberformatter.create.php>`_ for details relevant to the
"local_number" filter.

Expand Down

0 comments on commit 5d9dc9b

Please sign in to comment.