1
0
mirror of https://github.com/lxsang/antd-lua-plugin synced 2024-12-28 02:18:21 +01:00
antd-lua-plugin/example-app/os/test.ls
2018-09-19 15:08:49 +02:00

28 lines
409 B
Plaintext

<?lua
std.html()
?>
<!DOCTYPE html>
<html>
<head>
<title>Page Title</title>
</head>
<body>
<h1>This is a Heading</h1>
<p>This is a paragraph.</p>
<ul>
<?lua
local data = {k1 = "One", k2 = "two", k3 = "three"}
for k,v in pairs(data) do
?>
<li class = "<?=k..'1'?>" id = "<?=k..'2'?>" >
<?lua echo(v) ?>
</li>
<?lua
end
echo("end of \" %> lua")
?>
</ul>
</body>
</html>