Skip to content
Multiple layouts per document for DocPad
CoffeeScript HTML JavaScript
Find file
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
src
test
.gitignore
.npmignore
.travis.yml
Cakefile
Contributing.md
History.md
LICENSE.md
README.md
package.json

README.md

Multiple Layouts Plugin for DocPad

Build Status NPM version Gittip donate button Flattr donate button PayPayl donate button

Add additional layouts to your documents by adding 'additionalLayouts' to a document's metadata.

Install

docpad install multiplelayouts

Usage

Multiple layouts lets you add additional layouts to your document. You can do this by adding the additionalLayouts meta data property to your document's meta data like so:

---
title: Some Document
layout: default
additionalLayouts: data
---

Blah blah

If this document was located at src/documents/index.html and we had a layout default.html.eco and a layout data.json.eco then we would end up with the following output:

  • out/index.html
  • out/index-data.json

History

You can discover the history inside the History.md file

Contributing

You can discover the contributing instructions inside the Contributing.md file

License

Licensed under the incredibly permissive MIT License
Copyright © 2013+ Bevry Pty Ltd us@bevry.me

Something went wrong with that request. Please try again.