Update jinja2 snippets for set and elif statements