Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

gulp-consolidate-render

A library for compiling and rendering via Consolidate.js

gulp, consolidate, render

readme

gulp-consolidate-render

npm version Build Status Dependency Status devDependency Status

A library for compiling and rendering via Consolidate.js

gulp.src("src/*.md")
  ...
  .pipe(consolidate({
    engine: "handlebars"
  }))
  ...

consolidate([options])

options

Type: Object

Options passed to gulp-consolidate-render

options.engine

Type: String

Engine name. Engine must be installed via npm.

options.globals

Type: Object

Global variables to feed to template.

options.compileData

Type: Function

Function to merge globals, file data, etc.

options.templateDir

Type: String

Template directory to prepend to template name