summaryrefslogtreecommitdiff
path: root/.vim/snippets/mako.snippets
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2014-03-13 10:40:19 +0100
committerTobias Klauser <tklauser@distanz.ch>2014-03-13 10:40:19 +0100
commit77a122f0581d02845d8c7f0c1b889984a2627a35 (patch)
treecc77d8478ebea02b5c46b819639c5e1cae26565f /.vim/snippets/mako.snippets
parent5712528bbf80bb8f7b79ea5cdb94314659addba7 (diff)
Add snipMate
Diffstat (limited to '.vim/snippets/mako.snippets')
-rw-r--r--.vim/snippets/mako.snippets54
1 files changed, 54 insertions, 0 deletions
diff --git a/.vim/snippets/mako.snippets b/.vim/snippets/mako.snippets
new file mode 100644
index 0000000..2a0aef9
--- /dev/null
+++ b/.vim/snippets/mako.snippets
@@ -0,0 +1,54 @@
+snippet def
+ <%def name="${1:name}">
+ ${2:}
+ </%def>
+snippet call
+ <%call expr="${1:name}">
+ ${2:}
+ </%call>
+snippet doc
+ <%doc>
+ ${1:}
+ </%doc>
+snippet text
+ <%text>
+ ${1:}
+ </%text>
+snippet for
+ % for ${1:i} in ${2:iter}:
+ ${3:}
+ % endfor
+snippet if if
+ % if ${1:condition}:
+ ${2:}
+ % endif
+snippet if if/else
+ % if ${1:condition}:
+ ${2:}
+ % else:
+ ${3:}
+ % endif
+snippet try
+ % try:
+ ${1:}
+ % except${2:}:
+ ${3:pass}
+ % endtry
+snippet wh
+ % while ${1:}:
+ ${2:}
+ % endwhile
+snippet $
+ ${ ${1:} }
+snippet <%
+ <% ${1:} %>
+snippet <!%
+ <!% ${1:} %>
+snippet inherit
+ <%inherit file="${1:filename}" />
+snippet include
+ <%include file="${1:filename}" />
+snippet namespace
+ <%namespace file="${1:name}" />
+snippet page
+ <%page args="${1:}" />