Skip to content

documark/dmp-plugin-loader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

Documark Plugin Loader

npm version dependency status

Documark plugin for loading plugins with ease!

Usage

  1. Load plugin loader:

    plugins:
      - dmp-plugin-loader
  2. Specify plugins in your document.jade:

    ---
    title: Document
    ---
    
    plugin my-plugin
  3. The plugin loader will then find all plugin elements and use their text as plugin name.

  4. 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.

About

Documark plugin for loading plugins with ease!

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published