You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
713 B
30 lines
713 B
snippet for |
|
{% for ${1:record} in ${2:list} %} |
|
${3:{% content %}} |
|
{% endfor %} |
|
snippet if |
|
{% if ${1:condition} %} |
|
${2:{% content %}} |
|
{% endif %} |
|
snippet else |
|
{% else %} |
|
snippet block |
|
{% block ${1:blockname} %} |
|
${2:{% content %}} |
|
{% endblock $1 %} |
|
snippet macro |
|
{% macro ${1:name}(${2:params}) %} |
|
${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 #}
|
|
|