Comment 2 for bug 1053534

Revision history for this message
David Smith (dasmith2+launchpad) wrote :

Oh, but I HAD the latest version and it still didn't work. This works incorrectly also:

from pybars import Compiler

template = Compiler().compile(u"""
{{# if check}}
  yep.
{{^}}
  nope.
{{/if}}""")
template({"check": True}) # Works as expected.
template({"check": False}) # Does not work.
template({}) # Does not work.