Hello,
Nitro allready implements this. Have a look at www.nitrohq.com.
The normal way to do this is:
<ul>
<?r for item in items ?>
<li>#{item.title}</li>
<?r end ?>
</ul>
If you include the morphing shader you can also write it as:
<ul>
<li each="item in items">#{item.title}</li>
</ul>
And since Nitro, always gives you one more option (sic), you can do:
<ul>
<% for item in items %>
<li>#{item.title}</li>
<% end %>
</ul>
Suit yourself ;-)
Of course Nitro can do so much more. You can use XSLT on top of you
xhtml page, or the new cool Elements system (similar to JSP tag
libraries).
regards,
George.