Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

docpad-plugin-without

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

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

  • 2.1.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Weekly downloads
 
Created
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

Package last updated on 31 Dec 2016

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc