Commits

Ed Brannin committed dab6fa0

vim: Added jinja snippets

Comments (0)

Files changed (1)

vim/snippets/jinja.snippets

+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