# hem-compiler-jade

> jade support for hem

Latest version **0.1.3** (published 2012-10-16) · BSD license · 0 weekly downloads

## Install

```sh
npm install hem-compiler-jade
pnpm add hem-compiler-jade
yarn add hem-compiler-jade
bun add hem-compiler-jade
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.3 |
| Published | 2012-10-16 |
| First published | 2012-09-04 |
| Weekly downloads | 0 |
| License | BSD |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Author | nl_0 |
| Maintainers | nl |
| Keywords | jade, hem, template |

## Links

- npm: https://www.npmjs.com/package/hem-compiler-jade
- Repository: http://github.com/nl0/hem-compiler-jade
- npm.io page: https://npm.io/package/hem-compiler-jade

## Dependencies (1)

- [jade](https://npm.io/package/jade.md) 0.27

## Alternatives

- [vest](https://npm.io/package/vest.md) — 50.1K weekly downloads
- [@regle/core](https://npm.io/package/@regle/core.md) — 47.0K weekly downloads
- [typeof-arguments](https://npm.io/package/typeof-arguments.md) — 12.5K weekly downloads
- [@lokalise/projects-engine-contracts](https://npm.io/package/@lokalise/projects-engine-contracts.md) — 978 weekly downloads
- [@osjwnpm/nam-laboriosam-quibusdam](https://npm.io/package/@osjwnpm/nam-laboriosam-quibusdam.md) — 70 weekly downloads

## Recent versions

- 0.1.3 (latest) — 2012-10-16
- 0.1.2 — 2012-09-04

## README

# Jade compiler for hem

Compiles [Jade](https://github.com/visionmedia/jade/) templates for
[hem](https://github.com/maccman/hem).


## Usage

It is currently usable only with [this patch](https://github.com/maccman/hem/pull/47).

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:

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

---
_Source: https://npm.io/package/hem-compiler-jade · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
