From 72d653e1e0cffe2e48bd7a393acf08c96d6db50a Mon Sep 17 00:00:00 2001 From: Cody Hiar Date: Wed, 12 Aug 2015 11:51:04 -0600 Subject: Inidiat commit of working files --- UltiSnips/htmljinja.snippets | 93 ++++++++++++++++++++++++++++++++++++++++++++ UltiSnips/python.snippets | 8 ++++ 2 files changed, 101 insertions(+) create mode 100644 UltiSnips/htmljinja.snippets create mode 100644 UltiSnips/python.snippets (limited to 'UltiSnips') diff --git a/UltiSnips/htmljinja.snippets b/UltiSnips/htmljinja.snippets new file mode 100644 index 0000000..806afe7 --- /dev/null +++ b/UltiSnips/htmljinja.snippets @@ -0,0 +1,93 @@ +# http://jinja.pocoo.org/ + +# jinja2 is a full featured template engine for Python. It has full +# unicode support, an optional integrated sandboxed execution +# environment, widely used and BSD licensed. + +# possible extends: +#extends html + + +snippet block "block" b +{% block ${1:name} %} + $2 +{% endblock %} +endsnippet + + +snippet {{ "variable" b +{{ $1 }} +endsnippet + + +snippet {# "comment" b +{# $1 #} +endsnippet + + +snippet # "comment" b +{# $1 #} +endsnippet + + +snippet extends "extends" b +{% extends "${1:template}" %} +endsnippet + + +snippet include "include" b +{% include "${1:template}" %} +endsnippet + + +snippet import "import" b +{% import "${1:template}" %} +endsnippet + + +snippet from "from/import/as" b +{% from "${1:template}" import ${2:name}${3: as ${4:$2}} %} +endsnippet + + +snippet for "for" b +{% for ${1:item} in ${2:sequence} %} + $3 +{% endfor %} +endsnippet + + +snippet fore "for/else" b +{% for ${1:item} in ${2:sequence} %} + $3 +{% else %} + $4 +{% endfor %} +endsnippet + + +snippet if "if" b +{% if ${1:expr} %} + $2 +{% endif %} +endsnippet + + +snippet ife "if/else" b +{% if ${1:expr} %} + $2 +{% else %} + $3 +{% endif %} +endsnippet + + +snippet ifee "if/elif/else" b +{% if ${1:expr} %} + $2 +{% elif %} + $3 +{% else %} + $4 +{% endif %} +endsnippet diff --git a/UltiSnips/python.snippets b/UltiSnips/python.snippets new file mode 100644 index 0000000..65be5b1 --- /dev/null +++ b/UltiSnips/python.snippets @@ -0,0 +1,8 @@ +snippet "" "Comments but same line" b +""" $1 """ +endsnippet + +snippet de "Make a very basic function" b +def ${1:function}($2): + ${3:pass} +endsnippet -- cgit v1.2.3