[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: how to loop in lua page(not the php way) ?
- From: gary ng <garyng2000@...>
- Date: Wed, 14 Mar 2007 20:32:24 -0700 (PDT)
Hi,
I am wondering if is possible to loop in lua page in a
more "declarative" way as in
http://kid-templating.org/language.html
That is instead of :
<?lua
for i=1,10 do
cgilua.put(string.format("<p>%s</p>"), tostring(i))
end
?>
but something like(completely made up syntax):
<p <?= loop(10) ?>> <?= item ?> </p>
____________________________________________________________________________________
Expecting? Get great news right away with email Auto-Check.
Try the Yahoo! Mail Beta.
http://advision.webevents.yahoo.com/mailbeta/newmail_tools.html