Quantcast
Channel: Mako: Ticket Query
Viewing all articles
Browse latest Browse all 38

#140: inconsistent behavior of filter pulling from context based on name

$
0
0

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)

Viewing all articles
Browse latest Browse all 38

Trending Articles