add modules sample

This commit is contained in:
Evgeny
2021-08-07 17:34:36 +03:00
parent f366a227a2
commit 7682f6fccd
2 changed files with 13 additions and 0 deletions

View File

@@ -0,0 +1,5 @@
local mod = require "./module"
function on_resume()
ui:show_text(mod.hello_world())
end

8
samples/module.lua Normal file
View File

@@ -0,0 +1,8 @@
local module = {}
function module.hello_world()
return "Hello World!"
end
return module