Mercurial > genshi > mirror
view examples/bench/myghty/template.myt @ 362:fe40d34fb71d trunk
Follow-up to [431]: directives are no longer instantiated directly at parse time, but instead by the `attach()` method of the directive class (which replaces the `prepare()` method).
author | cmlenz |
---|---|
date | Wed, 22 Nov 2006 10:37:24 +0000 |
parents | 2295fb564250 |
children |
line wrap: on
line source
<%args> title items user </%args> <head> <title><% title %></title> </head> <&|base.myt:wrap &> <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 item in items: <li><% item %></li> % </ul> % </&>