Attempt at jinja2 elifs.