Documark Plugin Loader
Documark plugin for loading plugins with ease!
Usage
-
Load plugin loader:
plugins:- dmp-plugin-loader -
Specify plugins in your
document.jade
:---title: Document---plugin my-plugin -
The plugin loader will then find all
plugin
elements and use their text as plugin name. -
If the file or folder
./plugins/my-plugin
exists (relative to your document root), it will be loaded as a Node module (require('/path/to/plugins/my-plugin');
). Else the plugin name will be loaded (require('my-plugin');
).See Node modules, LOAD_AS_FILE and LOAD_AS_DIRECTORY for more information.