summaryrefslogtreecommitdiffstats
path: root/loadingdemo-controller.lua
diff options
context:
space:
mode:
Diffstat (limited to 'loadingdemo-controller.lua')
-rw-r--r--loadingdemo-controller.lua10
1 files changed, 10 insertions, 0 deletions
diff --git a/loadingdemo-controller.lua b/loadingdemo-controller.lua
new file mode 100644
index 0000000..d259d2c
--- /dev/null
+++ b/loadingdemo-controller.lua
@@ -0,0 +1,10 @@
+module(..., package.seeall)
+
+default_action = "read"
+
+function read(self)
+ local versioncontroller = self:new("alpine-baselayout/alpineversion")
+ local versionresult = versioncontroller:read()
+ versioncontroller:destroy()
+ return cfe({ value="I called alpineversion:read(), and you are running version "..versionresult.value, label="Alpine version" })
+end