this is related to #3 but seems different
frommako.templateimport Template x = Template(""" X: ${"asdf" | h.foo} """) y = Template(""" Y: ${"asdf" | z.foo} """) z = Template(""" Z: ${h} ${"asdf" | h.foo} """)classh(object): foo =strtry:print x.render(h=h)exceptNameError, e:print e print y.render(z=h)print z.render(h=h)