✏️ Template Engine Consolidation for DocPad
CoffeeScript HTML Handlebars
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
src Update documentation Jan 23, 2014
test Update dependencies Dec 13, 2014
.editorconfig Update dependencies Dec 13, 2014
.gitignore Update dependencies Dec 13, 2014
.jshintrc
.npmignore Update dependencies Dec 13, 2014
.travis.yml Update dependencies Dec 13, 2014
CONTRIBUTING.md
Cakefile
HISTORY.md Update to 2.1.1 Dec 13, 2014
LICENSE.md chore(~): Update to 2.2.0 Apr 19, 2015
README.md chore(~): Update to 2.2.0 Apr 19, 2015
coffeelint.json Update dependencies Dec 13, 2014
package.json chore(~): Update to 2.2.0 Apr 19, 2015

README.md

Template Engine Consolidation for DocPad

Build Status NPM version NPM downloads Dependency Status
Gratipay donate button Flattr donate button

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)

Install

docpad install consolidate

Usage

  1. Install the library for the desired template engine:

    npm install --save ejs
  2. 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

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:

Sponsors

No sponsors yet! Will you be the first?

Gratipay donate button Flattr donate button

Contributors

These amazing people have contributed code to this project:

Become a contributor!

License

Unless stated otherwise all works are:

and licensed under: