From 823302458ec6c53455a3f34674415c43ce6a3187 Mon Sep 17 00:00:00 2001 From: "Vito G. Graffagnino" Date: Sun, 28 Aug 2022 12:24:01 +0100 Subject: Added snippets directory --- snippets/mako.snippets | 54 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 snippets/mako.snippets (limited to 'snippets/mako.snippets') diff --git a/snippets/mako.snippets b/snippets/mako.snippets new file mode 100644 index 0000000..659caf7 --- /dev/null +++ b/snippets/mako.snippets @@ -0,0 +1,54 @@ +snippet def + <%def name="${1:name}"> + ${0:} + +snippet call + <%call expr="${1:name}"> + ${0:} + +snippet doc + <%doc> + ${0:} + +snippet text + <%text> + ${0:} + +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:${VISUAL}} + % except${2:}: + ${0:pass} + % endtry +snippet wh + % while ${1:}: + ${0:} + % endwhile +snippet $ + ${ ${0:} } +snippet <% + <% ${0:} %> +snippet +snippet inherit + <%inherit file="${0:filename}" /> +snippet include + <%include file="${0:filename}" /> +snippet namespace + <%namespace file="${0:name}" /> +snippet page + <%page args="${0:}" /> -- cgit v1.2.3