Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/docpad/docpad-plugin-consolidate
Template Engine Consolidation for DocPad
https://github.com/docpad/docpad-plugin-consolidate
docpad-plugin
Last synced: 23 days ago
JSON representation
Template Engine Consolidation for DocPad
- Host: GitHub
- URL: https://github.com/docpad/docpad-plugin-consolidate
- Owner: docpad
- License: other
- Created: 2013-12-23T06:00:56.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2024-02-11T04:17:20.000Z (11 months ago)
- Last Synced: 2024-04-24T18:55:29.217Z (9 months ago)
- Topics: docpad-plugin
- Language: HTML
- Homepage:
- Size: 540 KB
- Stars: 7
- Watchers: 12
- Forks: 2
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- Changelog: HISTORY.md
- Contributing: CONTRIBUTING.md
- Funding: .github/FUNDING.yml
- License: LICENSE.md
Awesome Lists containing this project
- awesome-starred - docpad/docpad-plugin-consolidate - Template Engine Consolidation for DocPad (others)
README
# [Template Engine Consolidation](http://github.com/visionmedia/consolidate.js/) for [DocPad](https://docpad.org)
Adds support for a [number of template engines](https://github.com/visionmedia/consolidate.js/#supported-template-engines)
to [DocPad](https://docpad.org), using [Consolidate.js](http://github.com/visionmedia/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
1. Install the library for the [desired template engine](https://github.com/visionmedia/consolidate.js/#supported-template-engines):
```bash
npm install --save ejs
```2. Use the template engine in a file such as _src/documents/test.html.ejs_:
```html
---
title: EJS
---
This is <%= document.title %>
```## Configure
It is possible to toggle which [supported template engines](https://github.com/visionmedia/consolidate.js/#supported-template-engines)
are rendered using [Consolidate.js](http://github.com/visionmedia/consolidate.js/),
by editing your [DocPad configuration file](http://docpad.org/docs/config):```coffee
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: