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.
47 lines
774 B
47 lines
774 B
snippet if "If block" i |
|
{% if ${1:condition} %} |
|
$0 |
|
{% endif %} |
|
endsnippet |
|
|
|
snippet else "Else" |
|
{% else %} |
|
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 |
|
|
|
snippet comment "Make code a comment" |
|
{% comment %} |
|
${0:${VISUAL}} |
|
{% endcomment %} |
|
endsnippet |
|
|
|
snippet modeline "Sets the modeline to HTMLDjango" |
|
{# vim:set ft=htmldjango: #} |
|
endsnippet
|
|
|