# duo-handlebars

> A duo plugin for precompiling Handlebars templates

Latest version **0.1.0** (published 2015-02-23) · 0 weekly downloads

## Install

```sh
npm install duo-handlebars
pnpm add duo-handlebars
yarn add duo-handlebars
bun add duo-handlebars
```

## 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.0 |
| Published | 2015-02-23 |
| First published | 2014-09-03 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 4 |
| Known vulnerabilities | 0 (+6 in 3 direct dependencies) |
| Install scripts | no |
| Maintainers | dominicbarnes |
| Keywords | duo, handlebars, plugin |

## Links

- npm: https://www.npmjs.com/package/duo-handlebars
- npm.io page: https://npm.io/package/duo-handlebars

## Dependencies (4)

- [co-fs](https://npm.io/package/co-fs.md) ^1.2.0
- [debug](https://npm.io/package/debug.md) ~2.0.0
- [extend](https://npm.io/package/extend.md) ~1.3.0
- [handlebars](https://npm.io/package/handlebars.md) ^3.0.0

## Recent versions

- 0.1.0 (latest) — 2015-02-23
- 0.0.1 — 2014-09-03

## README

# duo-handlebars

> A [Handlebars](http://handlebarsjs.com/) plugin for Duo

## Install

```sh
$ npm install --save duo-handlebars
```

## Usage

### CLI

```sh
$ duo --use duo-handlebars
```

### API

```js
var Duo = require('duo');
var handlebars = require('duo-handlebars');

var duo = Duo(__dirname)
    .entry('index.js') // JS file that requires a .hbs template
    .use(handlebars());

duo.run(function (err, file) {
    if (err) throw err;
    // file => will include compiled handlebars templates
});
```

## Options

Whatever options are passed (other than `extension`) will be proxied directly to `Handlebars.precompile()`

### extension

Determines what file extension to interpret handlebars templates as. (the default is `"hbs"`)

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