Commits

Ollie Rutherfurd committed 82dfd6d

started on jinja snippets

Comments (0)

Files changed (2)

snippets/htmljinja.snippets

+jinja.snippets

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 if
+	{% if ${1} %}
+		${2}
+	{% endif %}
+snippet ifi
+	{% if ${1} %}${2}{% endif %}
+snippet ifl
+	% if ${1}:
+		${2}
+	% endif