diff options
author | Chris Wanstrath <chris@ozmm.org> | 2010-03-30 10:32:35 -0700 |
---|---|---|
committer | Chris Wanstrath <chris@ozmm.org> | 2010-03-30 10:32:35 -0700 |
commit | a15519f43b320e25bc8077e9bace7eaba0f3c9d8 (patch) | |
tree | 65db4521ef344bc025dc86e7ab4cba141afd5746 /tests/test_examples.py | |
parent | 04560acac0c81757962b133a8c501efca5ae8e44 (diff) | |
download | pystache-a15519f43b320e25bc8077e9bace7eaba0f3c9d8.tar.gz |
Add {{& blah}} as an alias for {{{ blah }}}
Diffstat (limited to 'tests/test_examples.py')
-rw-r--r-- | tests/test_examples.py | 6 |
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!""") |