summaryrefslogtreecommitdiff
path: root/tests/test_examples.py
diff options
context:
space:
mode:
authorChris Wanstrath <chris@ozmm.org>2010-03-30 10:32:35 -0700
committerChris Wanstrath <chris@ozmm.org>2010-03-30 10:32:35 -0700
commita15519f43b320e25bc8077e9bace7eaba0f3c9d8 (patch)
tree65db4521ef344bc025dc86e7ab4cba141afd5746 /tests/test_examples.py
parent04560acac0c81757962b133a8c501efca5ae8e44 (diff)
downloadpystache-a15519f43b320e25bc8077e9bace7eaba0f3c9d8.tar.gz
Add {{& blah}} as an alias for {{{ blah }}}
Diffstat (limited to 'tests/test_examples.py')
-rw-r--r--tests/test_examples.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/test_examples.py b/tests/test_examples.py
index 57eb104..ccc254f 100644
--- a/tests/test_examples.py
+++ b/tests/test_examples.py
@@ -38,6 +38,12 @@ class TestView(unittest.TestCase):
def test_unescaped(self):
self.assertEquals(Unescaped().render(), "<h1>Bear > Shark</h1>")
+ def test_unescaped_sigil(self):
+ view = Escaped(template="<h1>{{& thing}}</h1>", context={
+ 'thing': 'Bear > Giraffe'
+ })
+ self.assertEquals(view.render(), "<h1>Bear > Giraffe</h1>")
+
def test_template_partial(self):
self.assertEquals(TemplatePartial().render(), """<h1>Welcome</h1>
Again, Welcome!""")