%PDF- %PDF-
Direktori : /proc/self/root/opt/alt/python37/share/doc/alt-python37-mako/examples/bench/myghty/ |
Current File : //proc/self/root/opt/alt/python37/share/doc/alt-python37-mako/examples/bench/myghty/template.myt |
<%flags>inherit="base.myt"</%flags> <%args> title items user </%args> <%method header> <%args scope="request"> title </%args> <head> <title><% title %></title> </head> </%method> <div><& base.myt:greeting, name=user &></div> <div><& base.myt:greeting, name="me"&></div> <div><& base.myt:greeting, name="world" &></div> <h2>Loop</h2> %if items: <ul> % for i, item in enumerate(items): <li <% i+1==len(items) and "class='last'" or ""%>><% item %></li> % </ul> %