mirror of
https://github.com/twigphp/Twig.git
synced 2026-09-21 07:37:43 +00:00
Merge remote branch 'jpb0104/master'
* jpb0104/master: Added an example of escaped "at" in a date filter.
This commit is contained in:
@@ -1137,6 +1137,12 @@ word "now":
|
||||
|
||||
{{ "now"|date("m/d/Y") }}
|
||||
|
||||
To escape words and characters in the date format use ``\\`` in front of each character:
|
||||
|
||||
.. code-block:: jinja
|
||||
|
||||
{{ post.published_at|date("F jS \\a\\t g:ia") }}
|
||||
|
||||
``format``
|
||||
~~~~~~~~~~
|
||||
|
||||
|
||||
Reference in New Issue
Block a user