projects
/
web/konrad/twig.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
1e09c7b
)
Added an example of escaped "at" in a date filter.
author
Jason Bouffard
<jasonbouffard@gmail.com>
Tue, 17 May 2011 21:28:44 +0000 (14:28 -0700)
committer
Jason Bouffard
<jasonbouffard@gmail.com>
Tue, 17 May 2011 21:28:44 +0000 (14:28 -0700)
Relates to https://github.com/fabpot/Twig/issues/330
doc/templates.rst
patch
|
blob
|
history
diff --git
a/doc/templates.rst
b/doc/templates.rst
index
72e866a
..
aabeb7a
100644
(file)
--- 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``
~~~~~~~~~~