1
0
Fork 0
mirror of synced 2024-12-29 01:53:21 -05:00
ultimate-vim/sources_non_forked/vim-snippets/snippets/htmltornado.snippets

56 lines
831 B
Text
Raw Normal View History

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