My own configuration files
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.

33 lines
756 B

11 years ago
snippet for
{% for ${1:record} in ${2:list} %}
11 years ago
${3:{% content %}}
11 years ago
{% endfor %}
snippet if
{% if ${1:condition} %}
11 years ago
${2:{% content %}}
11 years ago
{% endif %}
11 years ago
snippet else
{% else %}
11 years ago
snippet block
{% block ${1:blockname} %}
11 years ago
${2:{% content %}}
11 years ago
{% endblock $1 %}
snippet macro
{% macro ${1:name}(${2:params}) %}
11 years ago
${3:{% content %}}
{% endmacro %} {# $1 #}
snippet import
{% import "${1:filename}" as ${2:namespace}${3: with context} %}
snippet modeline
{# vim:set ft=htmldjango: #}
11 years ago
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 #}
11 years ago
snippet extends
{% extends "${1:file}" %}