2014-02-26 03:31:33 -05:00
|
|
|
priority -50
|
|
|
|
|
2013-12-08 05:35:27 -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}' %}
|
2013-12-26 08:31:30 -05:00
|
|
|
<link rel="stylesheet" href="{{ asset_url }}">
|
2013-12-08 05:35:27 -05:00
|
|
|
{% endstylesheets %}
|
|
|
|
endsnippet
|
|
|
|
|
|
|
|
snippet if "twig if" b
|
|
|
|
{% if ${1} %}
|
|
|
|
${2}
|
|
|
|
{% endif %}
|
|
|
|
endsnippet
|
|
|
|
|
|
|
|
snippet for "twig for" b
|
|
|
|
{% for ${1} in ${2} %}
|
|
|
|
${3}
|
|
|
|
{% endfor %}
|
|
|
|
endsnippet
|
|
|
|
|
|
|
|
snippet ext "twig extends" b
|
|
|
|
{% extends ${1} %}
|
|
|
|
endsnippet
|