Without Plugin for DocPad
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.coffeetag "!DOCTYPE"true html: truehtml ->head ->title @getPreparedTitleraw @getBlock"meta"toHTMLraw @getBlock"styles"add"/styles/style.css"toHTMLbody ->h1 @documenttitleraw @contentraw @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