citadel

My dotfiles, scripts and nix configs
git clone git://jb55.com/citadel
Log | Files | Refs | README | LICENSE

htmltornado.snippets (864B)


      1 # Generic tags
      2 
      3 snippet {
      4 	{{ ${1} }}
      5 
      6 # Template tags
      7 
      8 snippet extends
      9 	{% extends "${1:base.html}" %}
     10 snippet autoescape
     11 	{% autoescape ${1:xhtml_escape | None} %}
     12 snippet apply
     13 	{% apply ${1:function} %}
     14 	  ${2}
     15 	{% end %}
     16 snippet block
     17 	{% block ${1} %}
     18 	  ${2}
     19 	{% end %}
     20 snippet for
     21 	{% for ${1:item} in ${2} %}
     22 	  ${3}
     23 	{% end %}
     24 snippet from
     25 	{% from ${1:x} import ${2:y} %}
     26 snippet if
     27 	{% if ${1:condition} %}
     28 	  ${2}
     29 	{% end %}
     30 snippet elif
     31 	{% elif ${1:condition} %} 
     32 snippet else
     33 	{% else %}
     34 snippet import
     35 	{% import ${1:module} %}
     36 snippet include
     37 	{% include "${1:filename}" %}
     38 snippet module
     39 	{% module ${1:expression} %}
     40 snippet raw
     41 	{% raw ${1:expression} %}
     42 snippet set
     43 	{% set ${1:x} = ${2:y} %}
     44 snippet try
     45 	{% try %}
     46 	  ${1}
     47 	{% except %}
     48 	  ${2}
     49 	{% finallly %}
     50 	  ${3}
     51 	{% end %}
     52 snippet while
     53 	{% while ${1:condition} %}
     54 	  ${2}
     55 	{% end %}