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>&lt;? script ?&gt;</code> and <code>&lt;?= expression ?&gt;</code>,
18the "Kepler syntax" uses <code>&lt;?lua chunk ?&gt;</code>, <code>&lt;?lua= expression ?&gt;</code>, <code>&lt;% chunk %&gt;</code> and <code>&lt;%= expression %&gt;</code>.
19</p>
20
21
22<h2>Tags</h2>
23
24<code>
25&lt;? greeting = 'CiwetWeb' ?&gt;<br/>
26&lt;strong&gt;&lt;?= greeting %&gt;&lt;/strong&gt;<br/>
27</code><br/>
28<? greeting = 'CiwetWeb' ?>
29==> <strong><?= greeting ?></strong><br/>
30
31<br/>
32<code>
33&lt;?lua greeting = 'Kepler' ?&gt;<br/>
34&lt;strong&gt;&lt;?lua= greeting ?&gt;&lt;/strong&gt;<br/>
35</code><br/>
36<?lua greeting = 'Kepler' ?>
37==> <strong><?lua= greeting ?></strong><br/>
38
39<br/>
40<code>
41&lt;% greeting = 'Kepler %' ?&gt;<br/>
42&lt;strong&gt;&lt;%= greeting %&gt;&lt;/strong&gt;<br/>
43</code><br/>
44<% greeting = 'Kepler %' %>
45==> <strong><%= greeting %></strong><br/>
46
47
48</body></html>
49