wplua: enable the use of require() to load lua libraries from scripts/lib

This commit is contained in:
George Kiagiadakis
2022-03-31 09:37:49 +03:00
parent e1d0240bc9
commit 9c22f6076a
6 changed files with 88 additions and 4 deletions

View File

@@ -0,0 +1,9 @@
local testlib = {}
function testlib.test_add_ten (x)
return x + 10
end
Log.info("in testlib")
return testlib