DocPad renderer plugin for without template engine
CoffeeScript HTML
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
src
test
.editorconfig
.gitignore
.jshintrc
.npmignore
.travis.yml
Cakefile
FarMenu.ini
LICENSE.md
README.md
coffeelint.json
package.json

README.md

Without Plugin for DocPad

NPM version Build Status

Use withOut templates inside DocPad sites.

Install

docpad install without

Usage

withOut templates look like Jade or HAML templates but they are plain Coffee Script!

# src/layouts/default.html.coffee
(tag "!DOCTYPE", true) html: true
html ->
  head ->
    title @getPreparedTitle()
    raw @getBlock("meta").toHTML()
    raw @getBlock("styles").add(["/styles/style.css"]).toHTML()
  body ->
    h1 @document.title
    raw @content
    raw @getBlock("scripts").add(["/vendor/jquery.js", "/scripts/script.js"]).toHTML()

For historic reasons you can put withOut templates into .html.wo files, but recommended extension is .html.coffee.

License

Licensed under the incredibly permissive MIT license