diff --git a/doc/templates.rst b/doc/templates.rst index 72e866a69..aabeb7af2 100644 --- a/doc/templates.rst +++ b/doc/templates.rst @@ -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`` ~~~~~~~~~~