Skip to content

Latest commit

 

History

History
52 lines (33 loc) · 871 Bytes

.verb.md

File metadata and controls

52 lines (33 loc) · 871 Bytes

Usage

Use as a plugin, to initialize commonly used view collections (no views are actually added to the collections).

module.exports = function(app) {
  app.use(require('{%= name %}'));
  // do other generator stuff
};

Collections created

Adds the following view collections to your generator:

Renderable

Templates for files intended to be written to the file system.

  • files

Example usage

app.files('templates/*.md');

Layouts

Templates to be used as layouts (for "wrapping" other templates or content):

  • layouts
app.layouts('templates/layouts/*.md');

Partials

Templates to be used as partials (for injecting into other templates)

  • includes
  • badges
  • docs
app.partials('templates/partials/*.md');

Smart plugin

{%= include("base/smart-plugin.md") %}