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.
48 lines
774 B
48 lines
774 B
10 years ago
|
snippet if "If block" i
|
||
10 years ago
|
{% if ${1:condition} %}
|
||
|
$0
|
||
|
{% endif %}
|
||
|
endsnippet
|
||
|
|
||
10 years ago
|
snippet else "Else"
|
||
|
{% else %}
|
||
|
endsnippet
|
||
|
|
||
10 years ago
|
snippet for "For loop"
|
||
|
{% for ${1:variable} in ${2:set} %}
|
||
|
$0
|
||
|
{% endfor %}
|
||
|
endsnippet
|
||
10 years ago
|
|
||
10 years ago
|
snippet static "Django static route" i
|
||
10 years ago
|
{% static "$0" %}
|
||
10 years ago
|
endsnippet
|
||
|
|
||
|
snippet url "Django URL resolver" i
|
||
|
{% url '$0' %}
|
||
|
endsnippet
|
||
|
|
||
10 years ago
|
snippet load "Load a template tag" i
|
||
|
{% load ${0:module} %}
|
||
|
endsnippet
|
||
|
|
||
10 years ago
|
snippet csrf "Django CSRF token"
|
||
|
{% csrf_token %}$0
|
||
|
endsnippet
|
||
|
|
||
|
snippet spaceless "Remove spaces (uses visual)"
|
||
|
{% spaceless %}
|
||
|
${0:${VISUAL}}
|
||
|
{% endspaceless %}
|
||
10 years ago
|
endsnippet
|
||
10 years ago
|
|
||
|
snippet comment "Make code a comment"
|
||
|
{% comment %}
|
||
|
${0:${VISUAL}}
|
||
|
{% endcomment %}
|
||
|
endsnippet
|
||
10 years ago
|
|
||
|
snippet modeline "Sets the modeline to HTMLDjango"
|
||
|
{# vim:set ft=htmldjango: #}
|
||
|
endsnippet
|