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 -*-