Added an example of escaped "at" in a date filter.

Relates to https://github.com/fabpot/Twig/issues/330
This commit is contained in:
Jason Bouffard
2011-05-17 14:28:44 -07:00
parent 1e09c7b660
commit c0447ec6fe
+6
View File
@@ -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``
~~~~~~~~~~