nvim/UltiSnips/jinja.snippets

34 lines
505 B
Plaintext
Raw Permalink Normal View History

2020-03-19 15:47:31 +00:00
extends html
snippet com "{# .. #}"
{# $0 #}
endsnippet
snippet import "{% import ... %}"
{% import "$1" as $2 %}
endsnippet
snippet macro "{% macro ...%}"
{% macro $1(${2:$3="$4"}) %}
$0
{% endmacro %}
endsnippet
snippet blockin "{% block .. %}"
{% block $1 %}$0{% endblock %}
endsnippet
snippet block "{% block .. %}"
{% block $1 %}
$0
{% endblock %}
endsnippet
snippet include "{% include .. %}"
{% include "$0" %}
endsnippet
snippet extends "{% extends .. %}"
{% extends "$0" %}
endsnippet