2014-03-11 16:10:50 -04:00
|
|
|
priority -50
|
|
|
|
|
2013-12-28 13:23:13 -05:00
|
|
|
snippet bl "twig block" b
|
|
|
|
{% block ${1} %}
|
|
|
|
${2}
|
|
|
|
{% endblock $1 %}
|
|
|
|
endsnippet
|
|
|
|
|
|
|
|
snippet js "twig javascripts" b
|
|
|
|
{% javascripts '${1}' %}
|
|
|
|
<script src="{{ asset_url }}"></script>
|
|
|
|
{% endjavascripts %}
|
|
|
|
endsnippet
|
|
|
|
|
|
|
|
snippet css "twig stylesheets" b
|
|
|
|
{% stylesheets '${1}' %}
|
|
|
|
<link rel="stylesheet" href="{{ asset_url }}">
|
|
|
|
{% endstylesheets %}
|
|
|
|
endsnippet
|
|
|
|
|
|
|
|
snippet if "twig if" b
|
|
|
|
{% if ${1} %}
|
2016-05-14 07:57:54 -04:00
|
|
|
${0:${VISUAL}}
|
|
|
|
{% endif %}
|
|
|
|
endsnippet
|
|
|
|
|
|
|
|
snippet ife "twig if ... else" b
|
|
|
|
{% if ${1} %}
|
2013-12-28 13:23:13 -05:00
|
|
|
${2}
|
2016-05-14 07:57:54 -04:00
|
|
|
{% else %}
|
|
|
|
${0}
|
2013-12-28 13:23:13 -05:00
|
|
|
{% endif %}
|
|
|
|
endsnippet
|
|
|
|
|
2016-05-14 07:57:54 -04:00
|
|
|
snippet el "twig else"
|
|
|
|
{% else %}
|
|
|
|
${0:${VISUAL}}
|
|
|
|
endsnippet
|
|
|
|
|
|
|
|
snippet eif "twig elseif"
|
|
|
|
{% elseif ${1} %}
|
|
|
|
${0:${VISUAL}}
|
|
|
|
endsnippet
|
|
|
|
|
2013-12-28 13:23:13 -05:00
|
|
|
snippet for "twig for" b
|
|
|
|
{% for ${1} in ${2} %}
|
|
|
|
${3}
|
|
|
|
{% endfor %}
|
|
|
|
endsnippet
|
|
|
|
|
|
|
|
snippet ext "twig extends" b
|
|
|
|
{% extends ${1} %}
|
|
|
|
endsnippet
|