lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


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