New:Introducing Socket Scanning for VS Code Marketplace Extensions.Learn more →
Get Started

hem-jade

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hem-jade

Adds Jade templates support to Hem

latest
npmnpm
Version
0.0.1
Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

hem-jade

Use Jade in your Spine application!

This package lets you use Jade with hem server, usually in a Spine application.

Installation

Add this to your package.json:

{
  "dependencies": {
    // ...
    "jade": "*"
    "hem-jade": "*"
  }
}

Run npm install .

Add this to your slug.json:

"dependencies": [
  // ...
  "jade/lib/runtime"
]

Using it

Create slug.js with the following contents:

var argv = process.argv.slice(2);
require('hem-jade');
require('hem').exec(argv[0]);

Run hem server!

How does it work

slug.js loads hem-haml-coffee and passes it the argument.

hem-haml-coffee loads hem, sets it up to understand .haml files, and returns it.

#ProTip

Use Spinegen to add Jade support in 1 second:

spinegen use jade

FAQs

Package last updated on 21 Sep 2012

Related posts