2016-06-26 14:30:37 -04:00
|
|
|
snippet bl "{% block xyz %} .. {% endblock xyz %}"
|
2016-05-14 07:57:54 -04:00
|
|
|
{% block ${1} %}
|
|
|
|
${2}
|
|
|
|
{% endblock $1 %}
|
2016-06-26 14:30:37 -04:00
|
|
|
snippet js "{% javascripts 'xyz' %} .. {% endjavascripts %}"
|
2016-05-14 07:57:54 -04:00
|
|
|
{% javascripts '${1}' %}
|
|
|
|
<script src="{{ asset_url }}"></script>
|
|
|
|
{% endjavascripts %}
|
2016-06-26 14:30:37 -04:00
|
|
|
snippet css "{% stylesheets 'xyz' %} .. {% endstylesheets %}"
|
2016-05-14 07:57:54 -04:00
|
|
|
{% stylesheets '${1}' %}
|
|
|
|
<link rel="stylesheet" href="{{ asset_url }}">
|
|
|
|
{% endstylesheets %}
|
2016-06-26 14:30:37 -04:00
|
|
|
snippet if "{% if %} .. {% endif %}"
|
2016-05-14 07:57:54 -04:00
|
|
|
{% if ${1} %}
|
|
|
|
${2}
|
|
|
|
{% endif %}
|
2016-06-26 14:30:37 -04:00
|
|
|
snippet ife "{% if %} .. {% else %} .. {% endif %}"
|
2016-05-14 07:57:54 -04:00
|
|
|
{% if ${1} %}
|
|
|
|
${2}
|
|
|
|
{% else %}
|
|
|
|
${0}
|
|
|
|
{% endif %}
|
2016-06-26 14:30:37 -04:00
|
|
|
snippet el "{% else %}"
|
2016-05-14 07:57:54 -04:00
|
|
|
{% else %}
|
|
|
|
${0}
|
2016-06-26 14:30:37 -04:00
|
|
|
snippet eif "{% elseif %}"
|
2016-05-14 07:57:54 -04:00
|
|
|
{% elseif ${1} %}
|
|
|
|
${0}
|
2016-06-26 14:30:37 -04:00
|
|
|
snippet for "{% for x in y %} .. {% endfor %}"
|
2016-05-14 07:57:54 -04:00
|
|
|
{% for ${1} in ${2} %}
|
|
|
|
${3}
|
|
|
|
{% endfor %}
|
2016-06-26 14:30:37 -04:00
|
|
|
snippet ext "{% extends xyz %}"
|
2016-05-14 07:57:54 -04:00
|
|
|
{% extends ${1} %}
|