Browse Source

added new snippets

master
Julio Biason 10 years ago
parent
commit
5e63aa78db
  1. 27
      UltiSnips/html.snippets
  2. 4
      UltiSnips/jinja.snippets

27
UltiSnips/html.snippets

@ -0,0 +1,27 @@
snippet section "Sections"
<section>
$0
</section>
endsnippet
snippet ul "UL"
<ul>
$0
</ul>
endsnippet
snippet li "LI"
<li>$0</li>
endsnippet
snippet p "P"
<p>$0</p>
endsnippet
snippet pre "pre"
<pre>$0</pre>
endsnippet
snippet code "code"
<code>$0</code>
endsnippet

4
UltiSnips/jinja.snippets

@ -18,6 +18,10 @@ snippet url "Django URL resolver" i
{% url '$0' %} {% url '$0' %}
endsnippet endsnippet
snippet load "Load a template tag" i
{% load ${0:module} %}
endsnippet
snippet csrf "Django CSRF token" snippet csrf "Django CSRF token"
{% csrf_token %}$0 {% csrf_token %}$0
endsnippet endsnippet

Loading…
Cancel
Save