Socket
Socket
Sign inDemoInstall

docpad-plugin-without

Package Overview
Dependencies
105
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    docpad-plugin-without

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


Version published
Maintainers
1
Install size
419 kB
Created

Readme

Source

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

Keywords

FAQs

Last updated on 31 Dec 2016

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc