From b3bf3e0d6b3f809e07b8ba1d691476288b7b2b11 Mon Sep 17 00:00:00 2001 From: Julio Biason Date: Fri, 31 May 2013 15:17:15 -0300 Subject: [PATCH] snipmate snippets --- snippets/htmldjango.snippets | 16 ++++++++++++++++ snippets/python/#py.snippet | 2 ++ 2 files changed, 18 insertions(+) create mode 100644 snippets/htmldjango.snippets create mode 100644 snippets/python/#py.snippet diff --git a/snippets/htmldjango.snippets b/snippets/htmldjango.snippets new file mode 100644 index 0000000..6e8a70d --- /dev/null +++ b/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 %} diff --git a/snippets/python/#py.snippet b/snippets/python/#py.snippet new file mode 100644 index 0000000..ff6ea1e --- /dev/null +++ b/snippets/python/#py.snippet @@ -0,0 +1,2 @@ +#!/usr/bin/env python +# -*- encoding: utf-8 -*-