From 5e63aa78db5b24312d6d5f39bbcfbbe2b6edef54 Mon Sep 17 00:00:00 2001 From: Julio Biason Date: Wed, 6 Aug 2014 12:47:42 -0300 Subject: [PATCH] added new snippets --- UltiSnips/html.snippets | 27 +++++++++++++++++++++++++++ UltiSnips/jinja.snippets | 4 ++++ 2 files changed, 31 insertions(+) create mode 100644 UltiSnips/html.snippets diff --git a/UltiSnips/html.snippets b/UltiSnips/html.snippets new file mode 100644 index 0000000..f78d62e --- /dev/null +++ b/UltiSnips/html.snippets @@ -0,0 +1,27 @@ +snippet section "Sections" +
+ $0 +
+endsnippet + +snippet ul "UL" + +endsnippet + +snippet li "LI" +
  • $0
  • +endsnippet + +snippet p "P" +

    $0

    +endsnippet + +snippet pre "pre" +
    $0
    +endsnippet + +snippet code "code" +$0 +endsnippet diff --git a/UltiSnips/jinja.snippets b/UltiSnips/jinja.snippets index 1f74824..6485178 100644 --- a/UltiSnips/jinja.snippets +++ b/UltiSnips/jinja.snippets @@ -18,6 +18,10 @@ snippet url "Django URL resolver" i {% url '$0' %} endsnippet +snippet load "Load a template tag" i +{% load ${0:module} %} +endsnippet + snippet csrf "Django CSRF token" {% csrf_token %}$0 endsnippet