diff options
Diffstat (limited to 'emacs.d/nxhtml/tests/in/nutshell.mako')
-rw-r--r-- | emacs.d/nxhtml/tests/in/nutshell.mako | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/emacs.d/nxhtml/tests/in/nutshell.mako b/emacs.d/nxhtml/tests/in/nutshell.mako new file mode 100644 index 0000000..3c7540e --- /dev/null +++ b/emacs.d/nxhtml/tests/in/nutshell.mako @@ -0,0 +1,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> |