diff --git a/snippets/twig.snippets b/snippets/twig.snippets index dcd1a04..50ae823 100644 --- a/snippets/twig.snippets +++ b/snippets/twig.snippets @@ -1,43 +1,43 @@ # twig block snippet bl -{% block ${1} %} -${2} -{% endblock $1 %} + {% block ${1} %} + ${2} + {% endblock $1 %} # twig javascripts snippet js -{% javascripts '${1}' %} - -{% endjavascripts %} + {% javascripts '${1}' %} + + {% endjavascripts %} # twig stylesheets snippet css -{% stylesheets '${1}' %} - -{% endstylesheets %} + {% stylesheets '${1}' %} + + {% endstylesheets %} # twig if snippet if -{% if ${1} %} -${2} -{% endif %} + {% if ${1} %} + ${2} + {% endif %} # twig if ... else snippet ife -{% if ${1} %} -${2} -{% else %} -${0} -{% endif %} + {% if ${1} %} + ${2} + {% else %} + ${0} + {% endif %} # twig else snippet el -{% else %} -${0} + {% else %} + ${0} # twig elseif snippet eif -{% elseif ${1} %} -${0} + {% elseif ${1} %} + ${0} # twig for snippet for -{% for ${1} in ${2} %} -${3} -{% endfor %} + {% for ${1} in ${2} %} + ${3} + {% endfor %} # twig extends snippet ext -{% extends ${1} %} + {% extends ${1} %}