2014-02-26 03:31:33 -05:00
|
|
|
priority -50
|
|
|
|
|
2015-07-10 19:43:24 -04:00
|
|
|
extends html
|
|
|
|
|
|
|
|
# Generic Tags
|
2015-08-02 23:51:19 -04:00
|
|
|
snippet % "" bi
|
2015-07-10 19:43:24 -04:00
|
|
|
{% ${1} %}${2}
|
|
|
|
endsnippet
|
|
|
|
|
2015-08-02 23:51:19 -04:00
|
|
|
snippet %% "" bi
|
2015-07-10 19:43:24 -04:00
|
|
|
{% ${1:tag_name} %}
|
|
|
|
${2}
|
|
|
|
{% end$1 %}
|
|
|
|
endsnippet
|
|
|
|
|
2015-08-02 23:51:19 -04:00
|
|
|
snippet { "" bi
|
2015-07-10 19:43:24 -04:00
|
|
|
{{ ${1} }}${2}
|
|
|
|
endsnippet
|
|
|
|
|
|
|
|
# Template Tags
|
|
|
|
|
2015-08-02 23:51:19 -04:00
|
|
|
snippet autoescape "" bi
|
2015-07-10 19:43:24 -04:00
|
|
|
{% autoescape ${1:off} %}
|
|
|
|
${2}
|
|
|
|
{% endautoescape %}
|
|
|
|
endsnippet
|
|
|
|
|
2015-08-02 23:51:19 -04:00
|
|
|
snippet block "" bi
|
2015-07-10 19:43:24 -04:00
|
|
|
{% block ${1} %}
|
|
|
|
${2}
|
|
|
|
{% endblock $1 %}
|
|
|
|
endsnippet
|
|
|
|
|
2015-08-02 23:51:19 -04:00
|
|
|
snippet # "" bi
|
2015-07-10 19:43:24 -04:00
|
|
|
{# ${1:comment} #}
|
|
|
|
endsnippet
|
|
|
|
|
2015-08-02 23:51:19 -04:00
|
|
|
snippet comment "" bi
|
2015-07-10 19:43:24 -04:00
|
|
|
{% comment %}
|
|
|
|
${1}
|
|
|
|
{% endcomment %}
|
|
|
|
endsnippet
|
|
|
|
|
2015-08-02 23:51:19 -04:00
|
|
|
snippet cycle "" bi
|
2015-07-10 19:43:24 -04:00
|
|
|
{% cycle ${1:val1} ${2:val2} ${3:as ${4}} %}
|
|
|
|
endsnippet
|
|
|
|
|
2015-08-02 23:51:19 -04:00
|
|
|
snippet debug "" bi
|
2015-07-10 19:43:24 -04:00
|
|
|
{% debug %}
|
|
|
|
endsnippet
|
|
|
|
|
2015-08-02 23:51:19 -04:00
|
|
|
snippet extends "" bi
|
2015-07-10 19:43:24 -04:00
|
|
|
{% extends "${1:base.html}" %}
|
|
|
|
endsnippet
|
|
|
|
|
2015-08-02 23:51:19 -04:00
|
|
|
snippet filter "" bi
|
2015-07-10 19:43:24 -04:00
|
|
|
{% filter ${1} %}
|
|
|
|
${2}
|
|
|
|
{% endfilter %}
|
|
|
|
endsnippet
|
|
|
|
|
2015-08-02 23:51:19 -04:00
|
|
|
snippet firstof "" bi
|
2015-07-10 19:43:24 -04:00
|
|
|
{% firstof ${1} %}
|
|
|
|
endsnippet
|
|
|
|
|
2015-08-02 23:51:19 -04:00
|
|
|
snippet for "" bi
|
2015-07-10 19:43:24 -04:00
|
|
|
{% for ${1} in ${2} %}
|
|
|
|
${3}
|
|
|
|
{% endfor %}
|
|
|
|
endsnippet
|
|
|
|
|
2015-08-02 23:51:19 -04:00
|
|
|
snippet empty "" bi
|
2015-07-10 19:43:24 -04:00
|
|
|
{% empty %}
|
|
|
|
${1}
|
|
|
|
endsnippet
|
|
|
|
|
2015-08-02 23:51:19 -04:00
|
|
|
snippet if "" bi
|
2015-07-10 19:43:24 -04:00
|
|
|
{% if ${1} %}
|
|
|
|
${2}
|
|
|
|
{% endif %}
|
|
|
|
endsnippet
|
|
|
|
|
2015-08-02 23:51:19 -04:00
|
|
|
snippet iif "" bi
|
2015-07-10 21:20:39 -04:00
|
|
|
{% if ${1} %}${2}{% endif %}
|
|
|
|
endsnippet
|
|
|
|
|
2015-08-02 23:51:19 -04:00
|
|
|
snippet ielse "" bi
|
2015-07-10 21:20:39 -04:00
|
|
|
{% else %}${1}
|
|
|
|
endsnippet
|
|
|
|
|
2015-08-02 23:51:19 -04:00
|
|
|
snippet else "" bi
|
2015-07-10 19:43:24 -04:00
|
|
|
{% else %}
|
|
|
|
${1}
|
|
|
|
endsnippet
|
|
|
|
|
2015-08-02 23:51:19 -04:00
|
|
|
snippet ielif "" bi
|
2015-07-10 21:20:39 -04:00
|
|
|
{% elif %}${1}
|
|
|
|
endsnippet
|
|
|
|
|
2015-08-02 23:51:19 -04:00
|
|
|
snippet elif "" bi
|
2015-07-10 21:20:39 -04:00
|
|
|
{% elif %}
|
|
|
|
${1}
|
|
|
|
endsnippet
|
|
|
|
|
2015-08-02 23:51:19 -04:00
|
|
|
snippet ifchanged "" bi
|
2015-07-10 19:43:24 -04:00
|
|
|
{% ifchanged %}${1}{% endifchanged %}
|
|
|
|
endsnippet
|
|
|
|
|
2015-08-02 23:51:19 -04:00
|
|
|
snippet ifequal "" bi
|
2015-07-10 19:43:24 -04:00
|
|
|
{% ifequal ${1} ${2} %}
|
|
|
|
${3}
|
|
|
|
{% endifequal %}
|
|
|
|
endsnippet
|
|
|
|
|
2015-08-02 23:51:19 -04:00
|
|
|
snippet ifnotequal "" bi
|
2015-07-10 19:43:24 -04:00
|
|
|
{% ifnotequal ${1} ${2} %}
|
|
|
|
${3}
|
|
|
|
{% endifnotequal %}
|
|
|
|
endsnippet
|
|
|
|
|
2015-08-02 23:51:19 -04:00
|
|
|
snippet include "" bi
|
2015-07-10 19:43:24 -04:00
|
|
|
{% include "${1}" %}
|
|
|
|
endsnippet
|
|
|
|
|
2015-08-02 23:51:19 -04:00
|
|
|
snippet load "" bi
|
2015-07-10 19:43:24 -04:00
|
|
|
{% load ${1} %}
|
|
|
|
endsnippet
|
|
|
|
|
2015-08-02 23:51:19 -04:00
|
|
|
snippet now "" bi
|
2015-07-10 19:43:24 -04:00
|
|
|
{% now "${1:jS F Y H:i}" %}
|
|
|
|
endsnippet
|
|
|
|
|
2015-08-02 23:51:19 -04:00
|
|
|
snippet regroup "" bi
|
2015-07-10 19:43:24 -04:00
|
|
|
{% regroup ${1} by ${2} as ${3} %}
|
|
|
|
endsnippet
|
|
|
|
|
2015-08-02 23:51:19 -04:00
|
|
|
snippet spaceless "" bi
|
2015-07-10 19:43:24 -04:00
|
|
|
{% spaceless %}${1}{% endspaceless %}
|
|
|
|
endsnippet
|
|
|
|
|
2015-08-02 23:51:19 -04:00
|
|
|
snippet ssi "" bi
|
2015-07-10 19:43:24 -04:00
|
|
|
{% ssi ${1} %}
|
|
|
|
endsnippet
|
|
|
|
|
2015-08-02 23:51:19 -04:00
|
|
|
snippet trans "" bi
|
2015-07-10 19:43:24 -04:00
|
|
|
{% trans "${1:string}" %}
|
|
|
|
endsnippet
|
|
|
|
|
2015-08-02 23:51:19 -04:00
|
|
|
snippet url "" bi
|
2015-07-10 19:43:24 -04:00
|
|
|
{% url ${1} as ${2} %}
|
|
|
|
endsnippet
|
|
|
|
|
2015-08-02 23:51:19 -04:00
|
|
|
snippet widthratio "" bi
|
2015-07-10 19:43:24 -04:00
|
|
|
{% widthratio ${1:this_value} ${2:max_value} ${3:100} %}
|
|
|
|
endsnippet
|
|
|
|
|
2015-08-02 23:51:19 -04:00
|
|
|
snippet with "" bi
|
2015-07-10 19:43:24 -04:00
|
|
|
{% with ${1} as ${2} %}
|
2015-08-02 23:37:31 -04:00
|
|
|
${VISUAL}
|
2015-07-10 21:20:39 -04:00
|
|
|
{% endwith %}
|
|
|
|
endsnippet
|
|
|
|
|
2015-08-02 23:51:19 -04:00
|
|
|
snippet verbatim "" bi
|
2015-07-10 21:20:39 -04:00
|
|
|
{% verbatim %}
|
2015-08-02 23:37:31 -04:00
|
|
|
${VISUAL}
|
2015-07-10 21:20:39 -04:00
|
|
|
{% endverbatim %}
|
|
|
|
endsnippet
|
|
|
|
|
2015-08-02 23:51:19 -04:00
|
|
|
snippet super "" bi
|
2015-07-10 21:20:39 -04:00
|
|
|
{{ block.super }}
|
|
|
|
endsnippet
|
|
|
|
|
2015-08-02 23:51:19 -04:00
|
|
|
snippet staticu "" bi
|
2015-07-10 21:20:39 -04:00
|
|
|
{{ STATIC_URL }}
|
|
|
|
endsnippet
|
|
|
|
|
2015-08-02 23:51:19 -04:00
|
|
|
snippet static "" bi
|
2015-08-02 23:37:31 -04:00
|
|
|
{% static "${VISUAL}" %}
|
2015-07-10 21:20:39 -04:00
|
|
|
endsnippet
|
|
|
|
|
2015-08-02 23:51:19 -04:00
|
|
|
snippet mediau "" bi
|
2015-07-10 21:20:39 -04:00
|
|
|
{{ MEDIA_URL }}
|
|
|
|
endsnippet
|
|
|
|
|
2015-08-02 23:51:19 -04:00
|
|
|
snippet iblock "" bi
|
2015-08-02 23:37:31 -04:00
|
|
|
{% block ${1:blockname} %}${VISUAL}{% endblock $1 %}
|
2015-07-10 21:20:39 -04:00
|
|
|
endsnippet
|
|
|
|
|
2016-06-21 20:36:46 -04:00
|
|
|
snippet csrf "" bi
|
2015-07-10 21:20:39 -04:00
|
|
|
{% csrf_token %}
|
|
|
|
endsnippet
|
|
|
|
|
2015-08-02 23:51:19 -04:00
|
|
|
snippet blocktrans "" bi
|
2015-07-10 21:20:39 -04:00
|
|
|
{% blocktrans %}
|
2015-08-02 23:37:31 -04:00
|
|
|
${VISUAL}
|
2015-07-10 21:20:39 -04:00
|
|
|
{% endblocktrans %}
|
|
|
|
endsnippet
|
|
|
|
|
2015-08-02 23:51:19 -04:00
|
|
|
snippet lorem "" bi
|
2015-07-10 21:20:39 -04:00
|
|
|
{% lorem ${1} %}
|
2015-07-10 19:43:24 -04:00
|
|
|
endsnippet
|
|
|
|
|
|
|
|
# Template Filters
|
|
|
|
|
|
|
|
# Note: Since SnipMate can't determine which template filter you are
|
|
|
|
# expanding without the "|" character, these do not add the "|"
|
|
|
|
# character. These save a few keystrokes still.
|
|
|
|
|
|
|
|
# Note: Template tags that take no arguments are not implemented.
|
|
|
|
|
2015-08-02 23:51:19 -04:00
|
|
|
snippet add "" bi
|
2015-07-10 19:43:24 -04:00
|
|
|
add:"${1}"
|
|
|
|
endsnippet
|
|
|
|
|
2015-08-02 23:51:19 -04:00
|
|
|
snippet center "" bi
|
2015-07-10 19:43:24 -04:00
|
|
|
center:"${1}"
|
|
|
|
endsnippet
|
|
|
|
|
2015-08-02 23:51:19 -04:00
|
|
|
snippet cut "" bi
|
2015-07-10 19:43:24 -04:00
|
|
|
cut:"${1}"
|
|
|
|
endsnippet
|
|
|
|
|
2015-08-02 23:51:19 -04:00
|
|
|
snippet date "" bi
|
2015-07-10 19:43:24 -04:00
|
|
|
date:"${1}"
|
|
|
|
endsnippet
|
|
|
|
|
2015-08-02 23:51:19 -04:00
|
|
|
snippet default "" bi
|
2015-07-10 19:43:24 -04:00
|
|
|
default:"${1}"
|
|
|
|
endsnippet
|
|
|
|
|
2015-08-02 23:51:19 -04:00
|
|
|
snippet defaultifnone "" bi
|
2015-07-10 19:43:24 -04:00
|
|
|
default_if_none:"${1}"
|
|
|
|
endsnippet
|
|
|
|
|
2015-08-02 23:51:19 -04:00
|
|
|
snippet dictsort "" bi
|
2015-07-10 19:43:24 -04:00
|
|
|
dictsort:"${1}"
|
|
|
|
endsnippet
|
|
|
|
|
2015-08-02 23:51:19 -04:00
|
|
|
snippet dictsortrev "" bi
|
2015-07-10 19:43:24 -04:00
|
|
|
dictsortreversed:"${1}"
|
|
|
|
endsnippet
|
|
|
|
|
2015-08-02 23:51:19 -04:00
|
|
|
snippet divisibleby "" bi
|
2015-07-10 19:43:24 -04:00
|
|
|
divisibleby:"${1}"
|
|
|
|
endsnippet
|
|
|
|
|
2015-08-02 23:51:19 -04:00
|
|
|
snippet floatformat "" bi
|
2015-07-10 19:43:24 -04:00
|
|
|
floatformat:"${1}"
|
|
|
|
endsnippet
|
|
|
|
|
2015-08-02 23:51:19 -04:00
|
|
|
snippet getdigit "" bi
|
2015-07-10 19:43:24 -04:00
|
|
|
get_digit:"${1}"
|
|
|
|
endsnippet
|
|
|
|
|
2015-08-02 23:51:19 -04:00
|
|
|
snippet join "" bi
|
2015-07-10 19:43:24 -04:00
|
|
|
join:"${1}"
|
|
|
|
endsnippet
|
|
|
|
|
2015-08-02 23:51:19 -04:00
|
|
|
snippet lengthis "" bi
|
2015-07-10 19:43:24 -04:00
|
|
|
length_is:"${1}"
|
|
|
|
endsnippet
|
|
|
|
|
2015-08-02 23:51:19 -04:00
|
|
|
snippet pluralize "" bi
|
2015-07-10 19:43:24 -04:00
|
|
|
pluralize:"${1}"
|
|
|
|
endsnippet
|
|
|
|
|
2015-08-02 23:51:19 -04:00
|
|
|
snippet removetags "" bi
|
2015-07-10 19:43:24 -04:00
|
|
|
removetags:"${1}"
|
|
|
|
endsnippet
|
|
|
|
|
2015-08-02 23:51:19 -04:00
|
|
|
snippet slice "" bi
|
2015-07-10 19:43:24 -04:00
|
|
|
slice:"${1}"
|
|
|
|
endsnippet
|
|
|
|
|
2015-08-02 23:51:19 -04:00
|
|
|
snippet stringformat "" bi
|
2015-07-10 19:43:24 -04:00
|
|
|
stringformat:"${1}"
|
|
|
|
endsnippet
|
|
|
|
|
2015-08-02 23:51:19 -04:00
|
|
|
snippet time "" bi
|
2015-07-10 19:43:24 -04:00
|
|
|
time:"${1}"
|
|
|
|
endsnippet
|
|
|
|
|
2015-08-02 23:51:19 -04:00
|
|
|
snippet truncatewords "" bi
|
2015-07-10 19:43:24 -04:00
|
|
|
truncatewords:${1}
|
|
|
|
endsnippet
|
|
|
|
|
2015-08-02 23:51:19 -04:00
|
|
|
snippet truncatewordshtml "" bi
|
2015-07-10 19:43:24 -04:00
|
|
|
truncatewords_html:${1}
|
|
|
|
endsnippet
|
|
|
|
|
2015-08-02 23:51:19 -04:00
|
|
|
snippet urlizetrunc "" bi
|
2015-07-10 19:43:24 -04:00
|
|
|
urlizetrunc:${1}
|
|
|
|
endsnippet
|
|
|
|
|
2015-08-02 23:51:19 -04:00
|
|
|
snippet wordwrap "" bi
|
2015-07-10 19:43:24 -04:00
|
|
|
wordwrap:${1}
|
|
|
|
endsnippet
|
|
|
|
|
|
|
|
# vim:ft=snippets:
|