JSPM

docpad-plugin-without

2.1.2
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • 0
  • Score
    100M100P100Q28863F
  • License MIT

DocPad plugin that adds the ability to render withOut CoffeeScript templates to HTML

Package Exports

  • docpad-plugin-without

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (docpad-plugin-without) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

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