| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 | <html><body><h1>Lua Pages syntax test</h1><h2>Intro</h2><p>This is a test for the <a href="https://keplerproject.github.io/cgilua/manual.html#templates">Kepler Syntax of Lua Pages</a>, served by the<a href="https://github.com/civetweb/civetweb/">CivetWeb web server</a>.</p><p>While the native CivetWeb syntax for Lua pages is<code><? script ?></code> and <code><?= expression ?></code>,the "Kepler syntax" uses <code><?lua chunk ?></code>, <code><?lua= expression ?></code>, <code><% chunk %></code> and <code><%= expression %></code>.</p><h2>Tags</h2><code><? greeting = 'CiwetWeb' ?><br/><strong><?= greeting %></strong><br/></code><br/><? greeting = 'CiwetWeb' ?>==> <strong><?= greeting ?></strong><br/><br/><code><?lua greeting = 'Kepler' ?><br/><strong><?lua= greeting ?></strong><br/></code><br/><?lua greeting = 'Kepler' ?>==> <strong><?lua= greeting ?></strong><br/><br/><code><% greeting = 'Kepler %' ?><br/><strong><%= greeting %></strong><br/></code><br/><% greeting = 'Kepler %' %>==> <strong><%= greeting %></strong><br/><h2>Loops</h2><ul>   <% for key, value in pairs(mg.request_info) do %>   <li><%= key %>: <%= value %></li>   <% end %></ul></body></html>
 |