51 lines
580 B
Plaintext
51 lines
580 B
Plaintext
snippet for "Boucle for"
|
|
{% for item in $1 %}
|
|
|
|
{% endfor %}
|
|
endsnippet
|
|
|
|
snippet if "If cond"
|
|
{% if $1 %}
|
|
|
|
{% else %}
|
|
|
|
{% endif %}
|
|
endsnippet
|
|
|
|
snippet dump "Dump function"
|
|
{{ dump($1) }}
|
|
endsnippet
|
|
|
|
snippet trans "Trans function"
|
|
{{ '$1'|trans }}
|
|
endsnippet
|
|
|
|
snippet macro "Macro function"
|
|
{% import _self as macros %}
|
|
|
|
{% macro $1() %}
|
|
|
|
{% endmacro %}
|
|
|
|
{{ macros.$1() }}
|
|
endsnippet
|
|
|
|
snippet block "block"
|
|
{% block $1 %}
|
|
|
|
{% endblock %}
|
|
endsnippet
|
|
|
|
|
|
snippet {{ "Print"
|
|
{{ $1 }}
|
|
endsnippet
|
|
|
|
snippet {% "Function"
|
|
{% $1 %}
|
|
endsnippet
|
|
|
|
snippet set "Function"
|
|
{% set $1 %}
|
|
endsnippet
|