vimrc/sources_non_forked/vim-snippets/snippets/htmltornado.snippets

56 lines
831 B
Text
Raw Normal View History

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