source:
trunk/examples/bench/myghty/template.myt
| Last change on this file was 394, checked in by cmlenz, 17 years ago | |
|---|---|
| File size: 355 bytes | |
| Rev | Line | |
|---|---|---|
| [394] | 1 | <%args> |
| 2 | title | |
| 3 | items | |
| 4 | user | |
| 5 | </%args> | |
| 6 | ||
| 7 | <head> | |
| 8 | <title><% title %></title> | |
| 9 | </head> | |
| 10 | ||
| 11 | <&|base.myt:wrap &> | |
| 12 | <div><& base.myt:greeting, name=user &></div> | |
| 13 | <div><& base.myt:greeting, name="me"&></div> | |
| 14 | <div><& base.myt:greeting, name="world" &></div> | |
| 15 | ||
| 16 | <h2>Loop</h2> | |
| 17 | %if items: | |
| 18 | <ul> | |
| 19 | % for item in items: | |
| 20 | <li><% item %></li> | |
| 21 | % | |
| 22 | </ul> | |
| 23 | % | |
| 24 | ||
| 25 | </&> |
Note: See TracBrowser
for help on using the repository browser.
