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

hem-compiler-jade

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hem-compiler-jade

jade support for hem

  • 0.1.3
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
4
increased by100%
Maintainers
1
Weekly downloads
 
Created
Source

Jade compiler for hem

Compiles Jade templates for hem.

Usage

It is currently usable only with this patch.

  1. Install it with npm install hem-compiler-jade (and add it to the package.json if using one).

  2. Add "node_modules/hem-compiler-jade/node_modules/jade/runtime.js" (or simply "node_modules/jade/runtime.js" if jade is in your package.json) to the libs section of your slug.json.

  3. Add "jade": "hem-compiler-jade" to the compilers section of your slug.json.

  4. ...

  5. PROFIT!

Now all the .jade files are transparently compiled to js and can be required like normal modules exposing the only function -- the compiled template -- which takes context and returns resulting html.

For example, we have my-template.jade file:

tmpl = require('my-template')
html = tmpl({/*context aka locals*/})
...

Keywords

FAQs

Package last updated on 16 Oct 2012

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