lua-users home
lua-l archive

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





Hi,

I wanted to title this mail "eLua", but this terminus is taken,...

What I'm thinking about: You maybe heared of ERB, which is Ruby
embedded in HTML (similar to PHP).

Example:

     <html>
         <ul>
             <% (1..100).each do |x| %>
                 <li>
                     <%= x.to_str %>
                 </li>
             <% end %>
         </ul>
     </html>

Looks like the Lua Pages from the Kepler project
This is a preprocessor (in Lua of course) that does some magic with string.gsub() to the HTML text
look at: http://code.google.com/p/luapage/
and http://keplerproject.github.io/cgilua/manual.html

Regards

Oliver