2012-08-16 23:41:25 -04:00
|
|
|
# Generic tags
|
|
|
|
|
|
|
|
snippet {
|
2013-11-16 14:45:48 -05:00
|
|
|
{{ ${0} }}
|
2012-08-16 23:41:25 -04:00
|
|
|
|
|
|
|
# Template tags
|
|
|
|
|
|
|
|
snippet extends
|
2013-11-16 14:45:48 -05:00
|
|
|
{% extends "${0:base.html}" %}
|
2012-08-16 23:41:25 -04:00
|
|
|
snippet autoescape
|
2013-11-16 14:45:48 -05:00
|
|
|
{% autoescape ${0:xhtml_escape | None} %}
|
2012-08-16 23:41:25 -04:00
|
|
|
snippet apply
|
|
|
|
{% apply ${1:function} %}
|
2013-11-16 14:45:48 -05:00
|
|
|
${0}
|
2012-08-16 23:41:25 -04:00
|
|
|
{% end %}
|
|
|
|
snippet block
|
|
|
|
{% block ${1} %}
|
2013-11-16 14:45:48 -05:00
|
|
|
${0}
|
2012-08-16 23:41:25 -04:00
|
|
|
{% end %}
|
|
|
|
snippet for
|
|
|
|
{% for ${1:item} in ${2} %}
|
2013-11-16 14:45:48 -05:00
|
|
|
${0}
|
2012-08-16 23:41:25 -04:00
|
|
|
{% end %}
|
|
|
|
snippet from
|
2013-11-16 14:45:48 -05:00
|
|
|
{% from ${1:x} import ${0:y} %}
|
2012-08-16 23:41:25 -04:00
|
|
|
snippet if
|
|
|
|
{% if ${1:condition} %}
|
2013-11-16 14:45:48 -05:00
|
|
|
${0}
|
2012-08-16 23:41:25 -04:00
|
|
|
{% end %}
|
2013-07-17 19:06:05 -04:00
|
|
|
snippet eif
|
2013-11-16 14:45:48 -05:00
|
|
|
{% elif ${0:condition} %}
|
2013-07-17 19:06:05 -04:00
|
|
|
snippet el
|
2012-08-16 23:41:25 -04:00
|
|
|
{% else %}
|
|
|
|
snippet import
|
2013-11-16 14:45:48 -05:00
|
|
|
{% import ${0:module} %}
|
2012-08-16 23:41:25 -04:00
|
|
|
snippet include
|
2013-11-16 14:45:48 -05:00
|
|
|
{% include "${0:filename}" %}
|
2012-08-16 23:41:25 -04:00
|
|
|
snippet module
|
2013-11-16 14:45:48 -05:00
|
|
|
{% module ${0:expression} %}
|
2012-08-16 23:41:25 -04:00
|
|
|
snippet raw
|
2013-11-16 14:45:48 -05:00
|
|
|
{% raw ${0:expression} %}
|
2012-08-16 23:41:25 -04:00
|
|
|
snippet set
|
2013-11-16 14:45:48 -05:00
|
|
|
{% set ${1:x} = ${0:y} %}
|
2012-08-16 23:41:25 -04:00
|
|
|
snippet try
|
|
|
|
{% try %}
|
|
|
|
${1}
|
|
|
|
{% except %}
|
|
|
|
${2}
|
|
|
|
{% finallly %}
|
2013-11-16 14:45:48 -05:00
|
|
|
${0}
|
2012-08-16 23:41:25 -04:00
|
|
|
{% end %}
|
2013-11-16 14:45:48 -05:00
|
|
|
snippet wh
|
2012-08-16 23:41:25 -04:00
|
|
|
{% while ${1:condition} %}
|
2013-11-16 14:45:48 -05:00
|
|
|
${0}
|
2012-08-16 23:41:25 -04:00
|
|
|
{% end %}
|