aboutsummaryrefslogtreecommitdiff
path: root/vim/bundle/vim-snippets/snippets/mako.snippets
diff options
context:
space:
mode:
authorKarel Kočí <cynerd@email.cz>2016-06-30 16:03:25 +0200
committerKarel Kočí <cynerd@email.cz>2016-06-30 16:03:25 +0200
commite573b3020c032400eed60b649a2cbf55266e6bb0 (patch)
tree8f572394ac8433529c7a8e70d160a2fbe8268b4e /vim/bundle/vim-snippets/snippets/mako.snippets
parentb8c667bd64b3edd38d56c63c5bd1db53a23b4499 (diff)
downloadmyconfigs-e573b3020c032400eed60b649a2cbf55266e6bb0.tar.gz
myconfigs-e573b3020c032400eed60b649a2cbf55266e6bb0.tar.bz2
myconfigs-e573b3020c032400eed60b649a2cbf55266e6bb0.zip
Add current configurations from old repository
Diffstat (limited to 'vim/bundle/vim-snippets/snippets/mako.snippets')
-rw-r--r--vim/bundle/vim-snippets/snippets/mako.snippets54
1 files changed, 54 insertions, 0 deletions
diff --git a/vim/bundle/vim-snippets/snippets/mako.snippets b/vim/bundle/vim-snippets/snippets/mako.snippets
new file mode 100644
index 0000000..2264eac
--- /dev/null
+++ b/vim/bundle/vim-snippets/snippets/mako.snippets
@@ -0,0 +1,54 @@
+snippet def
+ <%def name="${1:name}">
+ ${0:}
+ </%def>
+snippet call
+ <%call expr="${1:name}">
+ ${0:}
+ </%call>
+snippet doc
+ <%doc>
+ ${0:}
+ </%doc>
+snippet text
+ <%text>
+ ${0:}
+ </%text>
+snippet for
+ % for ${1:i} in ${2:iter}:
+ ${0:}
+ % endfor
+snippet if if
+ % if ${1:condition}:
+ ${0:}
+ % endif
+snippet ife if/else
+ % if ${1:condition}:
+ ${2:}
+ % else:
+ ${0:}
+ % endif
+snippet try
+ % try:
+ ${1:}
+ % except${2:}:
+ ${0:pass}
+ % endtry
+snippet wh
+ % while ${1:}:
+ ${0:}
+ % endwhile
+snippet $
+ ${ ${0:} }
+snippet <%
+ <% ${0:} %>
+snippet <!%
+ <!% ${0:} %>
+snippet inherit
+ <%inherit file="${0:filename}" />
+snippet include
+ <%include file="${0:filename}" />
+snippet namespace
+ <%namespace file="${0:name}" />
+snippet page
+ <%page args="${0:}" />