From 1ad73485d0d51bcb6ef40efb51482f781359dae5 Mon Sep 17 00:00:00 2001 From: Julio Biason Date: Fri, 25 Jul 2014 15:47:01 -0300 Subject: [PATCH] snippets for jinja/django templates --- UltiSnips/htmldjango.snippets | 1 + UltiSnips/jinja.snippets | 11 +++++++++++ 2 files changed, 12 insertions(+) create mode 120000 UltiSnips/htmldjango.snippets create mode 100644 UltiSnips/jinja.snippets diff --git a/UltiSnips/htmldjango.snippets b/UltiSnips/htmldjango.snippets new file mode 120000 index 0000000..c3fdcb2 --- /dev/null +++ b/UltiSnips/htmldjango.snippets @@ -0,0 +1 @@ +jinja.snippets \ No newline at end of file diff --git a/UltiSnips/jinja.snippets b/UltiSnips/jinja.snippets new file mode 100644 index 0000000..2de3581 --- /dev/null +++ b/UltiSnips/jinja.snippets @@ -0,0 +1,11 @@ +snippet if "If block" +{% if ${1:condition} %} + $0 +{% endif %} +endsnippet + +snippet for "For loop" +{% for ${1:variable} in ${2:set} %} + $0 +{% endfor %} +endsnippet