Browse Source

snipmate snippets

master
Julio Biason 11 years ago
parent
commit
b3bf3e0d6b
  1. 16
      snippets/htmldjango.snippets
  2. 2
      snippets/python/#py.snippet

16
snippets/htmldjango.snippets

@ -0,0 +1,16 @@
snippet for
{% for ${1:record} in ${2:list} %}
${3:{# content #}}
{% endfor %}
snippet if
{% if ${1:condition} %}
${2:{# content #}}
{% endif %}
snippet block
{% block ${1:blockname} %}
${2:{# content #}}
{% endblock $1 %}
snippet macro
{% macro ${1:name}(${2:params}) %}
${3:{# content #}}
{% endmacro %}

2
snippets/python/#py.snippet

@ -0,0 +1,2 @@
#!/usr/bin/env python
# -*- encoding: utf-8 -*-
Loading…
Cancel
Save