1HTTP/1.0 200 OK 2Content-Type: text/html 3 4<html><body> 5 6<h1>Lua Pages syntax test</h1> 7 8<h2>Intro</h2> 9 10<p>This is a test for the 11<a href="https://keplerproject.github.io/cgilua/manual.html#templates">Kepler Syntax of Lua Pages</a>, 12served by the 13<a href="https://github.com/civetweb/civetweb/">CivetWeb web server</a>.</p> 14 15<p> 16While the native CivetWeb syntax for Lua pages is 17<code><? script ?></code> and <code><?= expression ?></code>, 18the "Kepler syntax" uses <code><?lua chunk ?></code>, <code><?lua= expression ?></code>, <code><% chunk %></code> and <code><%= expression %></code>. 19</p> 20 21 22<h2>Tags</h2> 23 24<code> 25<? greeting = 'CiwetWeb' ?><br/> 26<strong><?= greeting %></strong><br/> 27</code><br/> 28<? greeting = 'CiwetWeb' ?> 29==> <strong><?= greeting ?></strong><br/> 30 31<br/> 32<code> 33<?lua greeting = 'Kepler' ?><br/> 34<strong><?lua= greeting ?></strong><br/> 35</code><br/> 36<?lua greeting = 'Kepler' ?> 37==> <strong><?lua= greeting ?></strong><br/> 38 39<br/> 40<code> 41<% greeting = 'Kepler %' ?><br/> 42<strong><%= greeting %></strong><br/> 43</code><br/> 44<% greeting = 'Kepler %' %> 45==> <strong><%= greeting %></strong><br/> 46 47 48</body></html> 49