]>
Commit | Line | Data |
---|---|---|
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:}" /> |