Commit 1609163f by Jake Archibald

Adding failing test showing callable output being treated as template code

parent 3e453f82
......@@ -81,6 +81,14 @@ class TestPystache(unittest.TestCase):
ret = pystache.render(template, context)
self.assertEquals(ret, '{{hello}}')
def test_tag_in_labda_output(self):
template = '{{#test}}Blah{{/test}}'
context = {
'test': lambda x: '{{hello}}'
}
ret = pystache.render(template, context)
self.assertEquals(ret, '{{hello}}')
def test_section_in_value(self):
template = '{{test}}'
context = { 'test': '{{#hello}}' }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment