0.3.0 • Published 11 years ago
dmp-plugin-loader v0.3.0
Documark Plugin Loader
Documark plugin for loading plugins with ease!
Usage
Load plugin loader:
plugins: - dmp-plugin-loaderSpecify plugins in your
document.jade:--- title: Document --- plugin my-pluginThe plugin loader will then find all
pluginelements and use their text as plugin name.If the file or folder
./plugins/my-pluginexists (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.