Usage
The loader require and loadData are used to load a list of modules. These functions accept relative paths.
Load Normally
The results work the same way as require() and mw.loadData().
local loader = require('Module:Loader')
local string, table, yesno = loader.require('String', 'Table', 'Yesno')
local myData, myData2 = loader.loadData('MyData', 'MyData2')
Lazy Load
The lazy loader returns a proxy (a special table) that loads the module when it is accessed the first time.
If used on table-like exports (packages or data tables) or function exports, the proxy can be used the same way as a table/function.
If used on other exports types, the loaded data will be loaded in the 'value' field in the resulting table.
local loader = require('Module:Loader')
local string, table, yesno = loader.lazy.require('String', 'Table', 'Yesno')
local myData, myData2 = loader.lazy.loadData('MyData', 'MyData2')
Submodules
No submodules found for this page. Try purging the page or viewing all subpages.
See Also
| Hypixel SkyBlock Wiki Standard Lua Libraries (hsw/stdll) v · d · e | |
| Type | Libraries |
|---|---|
| Module Loading Utilities |
|
| General Utilities |
|
| Meta Modules | |
| Object-oriented |
|
| Caching | |