# jade-async

> Jade template engine with asynchronous support

Latest version **1.1.8** (published 2017-06-13) · MIT license · 0 weekly downloads

## Install

```sh
npm install jade-async
pnpm add jade-async
yarn add jade-async
bun add jade-async
```

Provides the command `jade`.

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.8 |
| Published | 2017-06-13 |
| First published | 2014-06-25 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 9 |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 6 |
| Author | Stanislav Yashenkov |
| Maintainers | nyakto |

## Links

- npm: https://www.npmjs.com/package/jade-async
- Repository: https://github.com/nyakto/jade-async
- Homepage: https://github.com/nyakto/jade-async#readme
- Issues: https://github.com/nyakto/jade-async/issues
- npm.io page: https://npm.io/package/jade-async

## Dependencies (9)

- [with](https://npm.io/package/with.md) ~3.0.0
- [mkdirp](https://npm.io/package/mkdirp.md) ~0.3.5
- [monocle](https://npm.io/package/monocle.md) 1.1.51
- [promise](https://npm.io/package/promise.md) ~5.0.0
- [commander](https://npm.io/package/commander.md) 2.1.0
- [uglify-js](https://npm.io/package/uglify-js.md) ~2.7.3
- [transformers](https://npm.io/package/transformers.md) 2.1.0
- [constantinople](https://npm.io/package/constantinople.md) ~2.0.0
- [character-parser](https://npm.io/package/character-parser.md) 1.2.0

## Recent versions

- 1.1.8 (latest) — 2017-06-13
- 1.1.7 — 2014-07-30
- 1.1.6 — 2014-07-09
- 1.1.5 — 2014-07-09
- 1.1.4 — 2014-07-09
- 1.1.3 — 2014-07-09
- 1.1.2 — 2014-07-09
- 1.1.1 — 2014-07-07
- 1.1.0 — 2014-06-26
- 1.0.3 — 2014-06-25
- 1.0.2 — 2014-06-25
- 1.0.1 — 2014-06-25

## README

jade-async
==========

This is work in progress. Even so, it passes much of original jade tests.

### Usage

template.jade
```jade
doctype html
html
	head
		title jade-async
	body
		h1= getGreeting('world')
		ul
			each item in getItems()
				li= item
```

test.js
```js
var jade = require('jade-async');
var vow = require('vow');

var tpl = jade.compileFile('template.jade');
var data = {
	getGreeting: function(username) {
		return vow.delay('Hello, ' + username + '!', 500);
	},
	getItems: function () {
		return [
			vow.delay('item1', 500),
			vow.delay('item2', 750),
			vow.delay('item3', 1000)
		];
	}
};
// promises
tpl(data).done(function (html) {
	console.log(html);
});
// streaming
tpl(data, process.stdout);
```

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