JSPM

  • Created
  • Published
  • Downloads 9
  • Score
    100M100P100Q59155F
  • License MIT

Template engine consolidation plugin for DocPad.

Package Exports

  • docpad-plugin-consolidate

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (docpad-plugin-consolidate) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Consolidate.js Plugin for DocPad

Build Status NPM version Gittip button Flattr button Bitdeli Badge

Adds support for a number of template engines to DocPad.

Convention:

.anything.(atpl|dust|eco|ect|ejs|haml|haml-coffee|handlebars|hogan|jade|jazz|jqtpl|just|liquor|lodash|mustache|qejs|ractive|swig|templayed|toffee|underscore|walrus|whiskers)

Install

  1. Install the docpad-plugin-consolidate plugin:
docpad install consolidate
  1. Install the library for the desired template engine:
npm install --save underscore
  1. Use the template engine in a file such as src/documents/test.html.underscore:
<p>Welcome to <%- site.title %></p>

Configure

It is possible to toggle which supported template engines are rendered with Consolidate.js, by editing your DocPad configuration file:

plugins:
  consolidate:
    atpl: true
    dust: true
    dot: true
    eco: true
    ect: true
    ejs: true
    haml: true
    handlebars: true
    hogan: true
    jade: true
    jazz: true
    jqtpl: true
    just: true
    liquor: true
    lodash: true
    mustache: true
    qejs: true
    ractive: true
    swig: true
    templayed: true
    toffee: true
    underscore: true
    walrus: true

History

Discover the change history by heading on over to the HISTORY.md file.

Contribute

Discover how you can contribute by heading on over to the CONTRIBUTING.md file.

Backers

Maintainers

These amazing people are maintaining this project:

Contributors

These amazing people have contributed code to this project:

Become a contributor!

License

Licensed under the incredibly permissive MIT license

Copyright © Rob Loach (http://robloach.net)