Permalink
Browse files

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

  • Loading branch information...
1 parent 1e09c7b commit c0447ec6feda1fe489ea86577ae2fcde4297de09 @jasonbouffard jasonbouffard committed May 17, 2011
Showing with 6 additions and 0 deletions.
  1. +6 −0 doc/templates.rst
View
@@ -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``
~~~~~~~~~~

0 comments on commit c0447ec

Please sign in to comment.