

def render(self, context):
    if self.var.resolve(context):
        return self.nodelist_true.render(context)
    if self.nodelist_false:
        return self.nodelist_false.render(context)
    return ''

dataset/ETHPy150Open aehlke/manabi/apps/utils/templatetags/smartif.py SmartIfNode.render/original