# async-mustache

> Asyncronous view functions

Latest version **0.1.3** (published 2014-09-24) · MIT license · 0 weekly downloads

## Install

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

## 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 | 2014-09-24 |
| First published | 2014-08-31 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 0 |
| Maintainers | pjfh |

## Links

- npm: https://www.npmjs.com/package/async-mustache
- Repository: https://github.com/PeterHancock/async-mustache.js
- Issues: https://github.com/PeterHancock/async-mustache.js/issues
- npm.io page: https://npm.io/package/async-mustache

## Dependencies (2)

- [q](https://npm.io/package/q.md) ^1.0.1
- [extend](https://npm.io/package/extend.md) ^1.3.0

## Recent versions

- 0.1.3 (latest) — 2014-09-24
- 0.1.2 — 2014-09-23
- 0.1.0 — 2014-08-31

## README

# async-mustache.js - Asyncronous view functions


A wrapper around https://github.com/janl/mustache.js/ providing asyncronous view functions

## Usage

Node:

```javascript
var Mustache = require('mustache');
var AsyncMustache = require('async-mustache')({mustache: Mustache});

var view = {
	async: AsyncMustache.async(function (text, render, callback) {
		setTimeout(function () {
			callback(null, render(text));
		}, 0);
	}))
};

AsyncMustache.render('{{#async}}async-{{/async}}mustache.js', view).then(function (output) {
	console.log(output); // async-mustache.js
});
```

Browser:

```html
<script src="mustache.js"></script>
<script src="async-mustache.js"></script>
<script>
var asyncMustache = require('async-mustache')({mustache: Mustache});
//Use it
</script>
```

## LICENSE

MIT

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