Module corky.include
Dynamic loading of other Corky modules.
Loading a module:
#: include, <module>
This will load the specified module. Note that you have to load a module before you can use any of its
configuration options. The module name has to be the full name of the module, e.g. "corky.colors"
.
Note: The call to require
used to load a module in the configuration handler
will be wrapped in a pcall
, so you will not see any error messages. Use a manual call to require
, e.g. in
the main module, when testing your own modules.
Info:
Local Functions
config_handler (setting) | Configuration handler for include settings. |
Local Functions
- config_handler (setting) line 50
-
Configuration handler for include settings.
This handler will be called automatically for every
include
directive in the configuration file.Parameters:
- setting table Array containing the configuration directive split into its individual parts.
Returns:
-
bool
If successful
true
,false
in case of any error.
See also: