mirror of
https://github.com/lxsang/antd-web-apps
synced 2025-07-17 14:19:45 +02:00
examples
This commit is contained in:
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()
|
||||
?>
|
5
apps/views/admin/post/edit.ls
Normal file
5
apps/views/admin/post/edit.ls
Normal file
@ -0,0 +1,5 @@
|
||||
<?lua
|
||||
local args = {...}
|
||||
echo("edit page <br/>")
|
||||
echo(JSON.encode(args))
|
||||
?>
|
Reference in New Issue
Block a user