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.
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.