]> git.madduck.net Git - etc/vim.git/blob - .vim/snippets/mako.snippets

madduck's git repository

Every one of the projects in this repository is available at the canonical URL git://git.madduck.net/madduck/pub/<projectpath> — see each project's metadata for the exact URL.

All patches and comments are welcome. Please squash your changes to logical commits before using git-format-patch and git-send-email to patches@git.madduck.net. If you'd read over the Git project's submission guidelines and adhered to them, I'd be especially grateful.

SSH access, as well as push access can be individually arranged.

If you use my repositories frequently, consider adding the following snippet to ~/.gitconfig and using the third clone URL listed for each project:

[url "git://git.madduck.net/madduck/"]
  insteadOf = madduck:

check in snipmate 0.83
[etc/vim.git] / .vim / snippets / mako.snippets
1 snippet def
2         <%def name="${1:name}">
3                 ${2:}
4         </%def>
5 snippet call
6         <%call expr="${1:name}">
7                 ${2:}
8         </%call>
9 snippet doc
10         <%doc>
11                 ${1:}
12         </%doc>
13 snippet text
14         <%text>
15                 ${1:}
16         </%text>
17 snippet for
18         % for ${1:i} in ${2:iter}:
19                 ${3:}
20         % endfor
21 snippet if if
22         % if ${1:condition}:
23                 ${2:}
24         % endif
25 snippet if if/else
26         % if ${1:condition}:
27                 ${2:}
28         % else:
29                 ${3:}
30         % endif
31 snippet try
32         % try:
33                 ${1:}
34         % except${2:}:
35                 ${3:pass}
36         % endtry
37 snippet wh
38         % while ${1:}:
39                 ${2:}
40         % endwhile
41 snippet $
42         ${ ${1:} }
43 snippet <%
44         <% ${1:} %>
45 snippet <!%
46         <!% ${1:} %>
47 snippet inherit
48         <%inherit file="${1:filename}" />
49 snippet include
50         <%include file="${1:filename}" />
51 snippet namespace
52         <%namespace file="${1:name}" />
53 snippet page
54         <%page args="${1:}" />