mirror of
https://github.com/lxsang/antd-web-apps
synced 2024-12-26 17:38:21 +01:00
examples
This commit is contained in:
parent
3eefab1bdb
commit
f253bc471f
@ -83,7 +83,7 @@ function Router:delegate()
|
||||
self:error(o)
|
||||
end
|
||||
else
|
||||
self:error(e)
|
||||
self:error("The index page is not found for layout: "..self.registry.layout)
|
||||
end
|
||||
end
|
||||
|
||||
|
11
apps/views/admin/index.ls
Normal file
11
apps/views/admin/index.ls
Normal file
@ -0,0 +1,11 @@
|
||||
<?lua
|
||||
local args = {...}
|
||||
echo("Admin pages<br />")
|
||||
local views = args[1]
|
||||
for k, v in pairs(views) do
|
||||
echo(k.." -> ")
|
||||
v:render()
|
||||
echo("<br/>")
|
||||
end
|
||||
--views.__main__:render()
|
||||
?>
|
27
apps/views/default/index.ls
Normal file
27
apps/views/default/index.ls
Normal file
@ -0,0 +1,27 @@
|
||||
<html>
|
||||
<head>
|
||||
<title>Application pages</title>
|
||||
<!--link rel="stylesheet" type="text/css" href="<?=HTTP_ROOT?>/asset/get/grs/ubuntu-regular.css" />
|
||||
<link rel="stylesheet" type="text/css" href="<?=HTTP_ROOT?>/asset/get/style.css" />
|
||||
<link rel="stylesheet" type="text/css" href="<?=HTTP_ROOT?>/asset/get/rst/font-awesome.css" />
|
||||
<script type="text/javascript" src="<?=HTTP_ROOT?>/asset/get/rst/gscripts/riot.min.js"> </script>
|
||||
<script type="text/javascript" src="<?=HTTP_ROOT?>/asset/get/rst/resources/antos_tags.js"></script>
|
||||
<script type="text/javascript" src="<?=HTTP_ROOT?>/asset/get/rst/gscripts/jquery-3.2.1.min.js"> </script>
|
||||
<script type="text/javascript" src="<?=HTTP_ROOT?>/asset/get/rst/main.js"></script>
|
||||
<script type="text/javascript" src="<?=HTTP_ROOT?>/asset/get/rst/gscripts/showdown.min.js"></script-->
|
||||
</head>
|
||||
<body>
|
||||
<div id="desktop">
|
||||
<?lua
|
||||
local args = {...}
|
||||
local views = args[1]
|
||||
for k, v in pairs(views) do
|
||||
echo(k.." -> ")
|
||||
v:render()
|
||||
echo("<br/>")
|
||||
end
|
||||
--views.__main__:render()
|
||||
?>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
Loading…
Reference in New Issue
Block a user