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
Template Engine Consolidation for DocPad
Adds support for a number of template engines to DocPad, using Consolidate.js.
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)
Usage
Install the library for the desired template engine:
npm install --save ejs
Use the template engine in a file such as src/documents/test.html.ejs:
--- title: EJS --- <p>This is <%= document.title %></p>
Configure
It is possible to toggle which supported template engines are rendered using Consolidate.js, by editing your DocPad configuration file:
plugins:
consolidate:
atpl: true
dot: true
dust: true
eco: true
ect: true
ejs: true
haml: true
'haml-coffee': true
handlebars: true
hogan: true
jade: true
jazz: true
jqtpl: true
just: true
liquor: true
lodash: true
mote: true
mustache: true
nunjucks: true
qejs: true
ractive: true
swig: true
templayed: true
toffee: true
underscore: true
walrus: true
whiskers: true
Install
Install this DocPad plugin by entering docpad install consolidate
into your terminal.
History
Discover the release 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:
Sponsors
No sponsors yet! Will you be the first?
Contributors
These amazing people have contributed code to this project:
- Benjamin Lupton — view contributions
- Daniel Jost — view contributions
- Rob Loach — view contributions
Discover how you can contribute by heading on over to the CONTRIBUTING.md
file.
License
Unless stated otherwise all works are:
- Copyright © 2018+ Benjamin Lupton
- Copyright © 2013+ Rob Loach
and licensed under: