Source

dotfiles / vim / snippets / jinja.snippets

The default branch has multiple heads

Full commit
snippet %
	{% ${1} %}${2}
snippet }
	{{ ${1} }}${2}
snippet %%
	{% ${1:tag} %}
		${2}
	{% end$1 %}
snippet block
	{% block ${1:content} %}
		${2}
	{% endblock $1 %}
snippet blocki
	{% block ${1:content} %}${2}{% endblock $1 %}
snippet extends
	{% extends "${1:layouts/base.html}" %}
	${2}
snippet for
	{% for ${1:item} in ${2:iterable} %}
		${3}
	{% endfor %}
snippet forl
	% for ${1:item} in ${2:iterable}:
		${3}
	% endfor
snippet if
	{% if ${1} %}
		${2}
	{% endif %}
snippet ifi
	{% if ${1} %}${2}{% endif %}
snippet ifl
	% if ${1}:
		${2}
	% endif