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:

  • Copyright: © 2015-2017 Stefan Göbel
  • Release: 2017033001
  • License: GPLv3
  • Author: Stefan Göbel [⌂] [✉]

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:

  1. bool If successful true, false in case of any error.

See also:

generated by LDoc 1.4.6 Last updated 2019-02-14 20:51:07