projects
/
jinja2.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
450756b
)
[svn] fixed docstring
author
Armin Ronacher
<armin.ronacher@active-4.com>
Sun, 15 Apr 2007 13:16:08 +0000
(15:16 +0200)
committer
Armin Ronacher
<armin.ronacher@active-4.com>
Sun, 15 Apr 2007 13:16:08 +0000
(15:16 +0200)
--HG--
branch : trunk
jinja/filters.py
patch
|
blob
|
history
diff --git
a/jinja/filters.py
b/jinja/filters.py
index 6af5cec31cc5365fa2bd2f266f51095484141815..73db407ed89fb37913999c82b36028f6d016774b 100644
(file)
--- a/
jinja/filters.py
+++ b/
jinja/filters.py
@@
-124,7
+124,7
@@
def do_xmlattr():
All values that are neither `none` nor `undefined` are automatically
escaped:
- .. sourcecode:: html
+ .. sourcecode:: html
+jinja
<ul{{ {'class': 'my_list', 'missing': None,
'id': 'list-%d'|format(variable) }}>
@@
-133,6
+133,8
@@
def do_xmlattr():
Results in something like this:
+ .. sourcecode:: html
+
<ul class="my_list" id="list-42">
...
</ul>