Can local variables be defined and used in the template?
I tried to use template as simple as following:
and expected that the produced output will be 1, but it failed with the error: NameError: global name 'a' is not defined
Locally, I added a unit test, reproducing this issue:
def testSimpleLocalVariable(self):
self.assertEquals("1", pyrazor.Render("@a=1\n@a\n"))
Am I missing something?