Skip to content
Myr

[svn] small fixes

Before adoption: this commit came in with the history the project adopted, so no landing records it.

--HG-- branch : trunk

authored by Armin Ronacher · committed by Armin Ronacher · parent 9997f96 · Browse files · 2 files+7 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

2 files+7 added−1 removed

  • tests:+6 added−0 removed
  • other:+1 added−1 removed

2 files+7 added−1 removed

modified:jinja/filters.py+1 added-1 removed
85 unmodified lines
86 s = s.replace("&", "&amp;").replace("<", "&lt;").replace(">", "&gt;")87 if attribute:88 s = s.replace('"', "&quot;")89 return s90escape = stringfilter(do_escape)90do_escape = stringfilter(do_escape)919293def do_addslashes(s):94 """
237 unmodified lines
modified:tests/inheritance.py+6 added
3 unmodified lines
4from jinja.parser import Parser5from jinja.translators.python import PythonTranslator67print PythonTranslator(e, e.loader.parse('index.html')).translate()89tmpl = e.loader.load('index.html')10print tmpl.render(navigation_items=[{11 'url': '/',12 'caption': 'Index'13}])