Julio Biason
11 years ago
3 changed files with 30 additions and 14 deletions
@ -1,20 +1,30 @@
|
||||
snippet for |
||||
{% for ${1:record} in ${2:list} %} |
||||
${3:{# content #}} |
||||
${3:{% content %}} |
||||
{% endfor %} |
||||
snippet if |
||||
{% if ${1:condition} %} |
||||
${2:{# content #}} |
||||
${2:{% content %}} |
||||
{% endif %} |
||||
snippet else |
||||
{% else %} |
||||
snippet block |
||||
{% block ${1:blockname} %} |
||||
${2:{# content #}} |
||||
${2:{% content %}} |
||||
{% endblock $1 %} |
||||
snippet macro |
||||
{% macro ${1:name}(${2:params}) %} |
||||
${3:{# content #}} |
||||
${3:{% content %}} |
||||
{% endmacro %} {# $1 #} |
||||
snippet import |
||||
{% import "${1:filename}" as ${2:namespace}${3: with context} %} |
||||
snippet modeline |
||||
{# vim:set ft=htmldjango: #} |
||||
snippet include |
||||
{% include "${1:filename}"${2: ignore missing}${3: with context} %} |
||||
snippet set |
||||
{% set ${1:variable} = ${2:value} %} |
||||
snippet call |
||||
{% call ${1:macro}(${2:params}) %} |
||||
${3:{% content %}} |
||||
{% endcall %} {# $1 #} |
||||
|
Loading…
Reference in new issue