Fix indentation for templating snippets
This commit is contained in:
parent
4f23aa45b8
commit
3f56f55ffa
@ -12,17 +12,17 @@ snippet {
|
|||||||
|
|
||||||
snippet autoescape
|
snippet autoescape
|
||||||
{% autoescape ${1:off} %}
|
{% autoescape ${1:off} %}
|
||||||
${2}
|
${2}
|
||||||
{% endautoescape %}
|
{% endautoescape %}
|
||||||
snippet block
|
snippet block
|
||||||
{% block ${1} %}
|
{% block ${1} %}
|
||||||
${2}
|
${2}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
snippet #
|
snippet #
|
||||||
{# ${1:comment} #}
|
{# ${1:comment} #}
|
||||||
snippet comment
|
snippet comment
|
||||||
{% comment %}
|
{% comment %}
|
||||||
${1}
|
${1}
|
||||||
{% endcomment %}
|
{% endcomment %}
|
||||||
snippet cycle
|
snippet cycle
|
||||||
{% cycle ${1:val1} ${2:val2} ${3:as ${4}} %}
|
{% cycle ${1:val1} ${2:val2} ${3:as ${4}} %}
|
||||||
@ -32,33 +32,33 @@ snippet extends
|
|||||||
{% extends "${1:base.html}" %}
|
{% extends "${1:base.html}" %}
|
||||||
snippet filter
|
snippet filter
|
||||||
{% filter ${1} %}
|
{% filter ${1} %}
|
||||||
${2}
|
${2}
|
||||||
{% endfilter %}
|
{% endfilter %}
|
||||||
snippet firstof
|
snippet firstof
|
||||||
{% firstof ${1} %}
|
{% firstof ${1} %}
|
||||||
snippet for
|
snippet for
|
||||||
{% for ${1} in ${2} %}
|
{% for ${1} in ${2} %}
|
||||||
${3}
|
${3}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
snippet empty
|
snippet empty
|
||||||
{% empty %}
|
{% empty %}
|
||||||
${1}
|
${1}
|
||||||
snippet if
|
snippet if
|
||||||
{% if ${1} %}
|
{% if ${1} %}
|
||||||
${2}
|
${2}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
snippet else
|
snippet else
|
||||||
{% else %}
|
{% else %}
|
||||||
${1}
|
${1}
|
||||||
snippet ifchanged
|
snippet ifchanged
|
||||||
{% ifchanged %}${1}{% endifchanged %}
|
{% ifchanged %}${1}{% endifchanged %}
|
||||||
snippet ifequal
|
snippet ifequal
|
||||||
{% ifequal ${1} ${2} %}
|
{% ifequal ${1} ${2} %}
|
||||||
${3}
|
${3}
|
||||||
{% endifequal %}
|
{% endifequal %}
|
||||||
snippet ifnotequal
|
snippet ifnotequal
|
||||||
{% ifnotequal ${1} ${2} %}
|
{% ifnotequal ${1} ${2} %}
|
||||||
${3}
|
${3}
|
||||||
{% endifnotequal %}
|
{% endifnotequal %}
|
||||||
snippet include
|
snippet include
|
||||||
{% include "${1}" %}
|
{% include "${1}" %}
|
||||||
|
Loading…
Reference in New Issue
Block a user