From e4ad284155ba7bd8e826d5c708ecc7ffc8a2e292 Mon Sep 17 00:00:00 2001 From: Armin Ronacher Date: Wed, 28 Feb 2007 20:41:12 +0100 Subject: [PATCH] [svn] small fixes --HG-- branch : trunk --- jinja/filters.py | 2 +- tests/inheritance.py | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/jinja/filters.py b/jinja/filters.py index a7bb9d3..1d0330a 100644 --- a/jinja/filters.py +++ b/jinja/filters.py @@ -87,7 +87,7 @@ def do_escape(s, attribute=False): if attribute: s = s.replace('"', """) return s -escape = stringfilter(do_escape) +do_escape = stringfilter(do_escape) def do_addslashes(s): diff --git a/tests/inheritance.py b/tests/inheritance.py index 1c56168..8b1ebec 100644 --- a/tests/inheritance.py +++ b/tests/inheritance.py @@ -5,3 +5,9 @@ from jinja.parser import Parser from jinja.translators.python import PythonTranslator print PythonTranslator(e, e.loader.parse('index.html')).translate() + +tmpl = e.loader.load('index.html') +print tmpl.render(navigation_items=[{ + 'url': '/', + 'caption': 'Index' +}]) -- 2.26.2