My own configuration files
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

34 lines
542 B

snippet if "If block" i
{% if ${1:condition} %}
$0
{% endif %}
endsnippet
snippet for "For loop"
{% for ${1:variable} in ${2:set} %}
$0
{% endfor %}
endsnippet
snippet static "Django static route" i
{% static '$0' %}
endsnippet
snippet url "Django URL resolver" i
{% url '$0' %}
endsnippet
snippet load "Load a template tag" i
{% load ${0:module} %}
endsnippet
snippet csrf "Django CSRF token"
{% csrf_token %}$0
endsnippet
snippet spaceless "Remove spaces (uses visual)"
{% spaceless %}
${0:${VISUAL}}
{% endspaceless %}
endsnippet