vimrc/sources_non_forked/vim-snippets/snippets/mako.snippets

55 lines
735 B
Text
Raw Normal View History

2012-08-17 03:41:25 +00:00
snippet def
<%def name="${1:name}">
${0:}
2012-08-17 03:41:25 +00:00
</%def>
snippet call
<%call expr="${1:name}">
${0:}
2012-08-17 03:41:25 +00:00
</%call>
snippet doc
<%doc>
${0:}
2012-08-17 03:41:25 +00:00
</%doc>
snippet text
<%text>
${0:}
2012-08-17 03:41:25 +00:00
</%text>
snippet for
% for ${1:i} in ${2:iter}:
${0:}
2012-08-17 03:41:25 +00:00
% endfor
snippet if if
% if $1:
${0:}
2012-08-17 03:41:25 +00:00
% endif
2013-07-17 23:06:05 +00:00
snippet ife if/else
% if $1:
2012-08-17 03:41:25 +00:00
${2:}
% else:
${0:}
2012-08-17 03:41:25 +00:00
% endif
snippet try
% try:
2017-02-11 13:01:38 +00:00
${1:${VISUAL}}
2012-08-17 03:41:25 +00:00
% except${2:}:
${0:pass}
2012-08-17 03:41:25 +00:00
% endtry
snippet wh
% while ${1:}:
${0:}
2012-08-17 03:41:25 +00:00
% endwhile
snippet $
${ ${0:} }
2012-08-17 03:41:25 +00:00
snippet <%
<% ${0:} %>
2012-08-17 03:41:25 +00:00
snippet <!%
<!% ${0:} %>
2012-08-17 03:41:25 +00:00
snippet inherit
<%inherit file="${0:filename}" />
2012-08-17 03:41:25 +00:00
snippet include
<%include file="${0:filename}" />
2012-08-17 03:41:25 +00:00
snippet namespace
<%namespace file="${0:name}" />
2012-08-17 03:41:25 +00:00
snippet page
<%page args="${0:}" />