Julio Biason
11 years ago
3 changed files with 30 additions and 14 deletions
@ -1,20 +1,30 @@ |
|||||||
snippet for |
snippet for |
||||||
{% for ${1:record} in ${2:list} %} |
{% for ${1:record} in ${2:list} %} |
||||||
${3:{# content #}} |
${3:{% content %}} |
||||||
{% endfor %} |
{% endfor %} |
||||||
snippet if |
snippet if |
||||||
{% if ${1:condition} %} |
{% if ${1:condition} %} |
||||||
${2:{# content #}} |
${2:{% content %}} |
||||||
{% endif %} |
{% endif %} |
||||||
|
snippet else |
||||||
|
{% else %} |
||||||
snippet block |
snippet block |
||||||
{% block ${1:blockname} %} |
{% block ${1:blockname} %} |
||||||
${2:{# content #}} |
${2:{% content %}} |
||||||
{% endblock $1 %} |
{% endblock $1 %} |
||||||
snippet macro |
snippet macro |
||||||
{% macro ${1:name}(${2:params}) %} |
{% macro ${1:name}(${2:params}) %} |
||||||
${3:{# content #}} |
${3:{% content %}} |
||||||
{% endmacro %} {# $1 #} |
{% endmacro %} {# $1 #} |
||||||
snippet import |
snippet import |
||||||
{% import "${1:filename}" as ${2:namespace}${3: with context} %} |
{% import "${1:filename}" as ${2:namespace}${3: with context} %} |
||||||
snippet modeline |
snippet modeline |
||||||
{# vim:set ft=htmldjango: #} |
{# 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