|
|
|
@ -1,4 +1,4 @@
|
|
|
|
|
snippet if "If block" |
|
|
|
|
snippet if "If block" i |
|
|
|
|
{% if ${1:condition} %} |
|
|
|
|
$0 |
|
|
|
|
{% endif %} |
|
|
|
@ -10,6 +10,20 @@ snippet for "For loop"
|
|
|
|
|
{% endfor %} |
|
|
|
|
endsnippet |
|
|
|
|
|
|
|
|
|
snippet static "Django static route" |
|
|
|
|
{% static "${1:path}" %} |
|
|
|
|
snippet static "Django static route" i |
|
|
|
|
{% static '$0' %} |
|
|
|
|
endsnippet |
|
|
|
|
|
|
|
|
|
snippet url "Django URL resolver" i |
|
|
|
|
{% url '$0' %} |
|
|
|
|
endsnippet |
|
|
|
|
|
|
|
|
|
snippet csrf "Django CSRF token" |
|
|
|
|
{% csrf_token %}$0 |
|
|
|
|
endsnippet |
|
|
|
|
|
|
|
|
|
snippet spaceless "Remove spaces (uses visual)" |
|
|
|
|
{% spaceless %} |
|
|
|
|
${0:${VISUAL}} |
|
|
|
|
{% endspaceless %} |
|
|
|
|
endsnippet |
|
|
|
|