summaryrefslogtreecommitdiffstats
path: root/emacs.d/nxhtml/tests/in/nutshell.mako
blob: 3c7540e7b8e0a63abdc6863a288dea9b346ee2db (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
    % for row in rows:
<%inherit file="base.html"/>

<%
    rows = [[v for v in range(0,10)] for row in range(0,10)]
%>
<%!
    rows = [[v for v in range(0,10)] for row in range(0,10)]
%>
aaa
<table>
  ## This is a comment.
    % for row in rows:
        ${makerow(row)}
    % endfor
</table>

<%def name="makerow(row)">
    <tr>
    % for name in row:
        <td>${name}</td>\
    % endfor
    </tr>
</%def>
<%doc>
This should be a comment too...
</%doc>