# broccoli-ember-hbs-template-compiler

> ember.js precompiler for projects that use broccoli

Latest version **1.7.2-alpha** (published 2015-11-04) · 0 weekly downloads

## Install

```sh
npm install broccoli-ember-hbs-template-compiler
pnpm add broccoli-ember-hbs-template-compiler
yarn add broccoli-ember-hbs-template-compiler
bun add broccoli-ember-hbs-template-compiler
```

## 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.7.2-alpha |
| Published | 2015-11-04 |
| First published | 2014-03-29 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 4 |
| Known vulnerabilities | 0 (+9 in 1 direct dependencies) |
| Install scripts | no |
| Author | toran billups |
| Maintainers | rwjblue, stefanpenner, toranb |
| Keywords | Ember.js, Handlebars.js, Broccoli |

## Links

- npm: https://www.npmjs.com/package/broccoli-ember-hbs-template-compiler
- Repository: https://github.com/toranb/broccoli-ember-hbs-template-compiler
- Homepage: https://github.com/toranb/broccoli-ember-hbs-template-compiler#readme
- Issues: https://github.com/toranb/broccoli-ember-hbs-template-compiler/issues
- npm.io page: https://npm.io/package/broccoli-ember-hbs-template-compiler

## Dependencies (4)

- [handlebars](https://npm.io/package/handlebars.md) ^2.0.0
- [js-string-escape](https://npm.io/package/js-string-escape.md) ^1.0.0
- [ember-template-compiler](https://npm.io/package/ember-template-compiler.md) ^1.9.0-alpha
- [broccoli-persistent-filter](https://npm.io/package/broccoli-persistent-filter.md) ^1.1.4

## Recent versions

- 1.7.2-alpha (latest) — 2015-11-04
- 1.6.3 — 2015-11-04
- 1.7.0 — 2014-11-03
- 1.6.2 — 2014-08-26
- 1.6.1 — 2014-08-20
- 1.5.0 — 2014-04-01
- 1.4.0 — 2014-03-29

## README

# broccoli-ember-hbs-template-compiler

[![Build Status](https://secure.travis-ci.org/toranb/broccoli-ember-hbs-template-compiler.png?branch=master)](https://travis-ci.org/toranb/broccoli-ember-hbs-template-compiler)

An opinionated filter for Broccoli that compiles handlebars templates for ember.js

## Installation

```bash
npm install --save-dev broccoli-ember-hbs-template-compiler
```

## Usage Example

```js
module.exports = function (broccoli) {
  var templateCompiler = require('broccoli-ember-hbs-template-compiler')
  var pickFiles = require('broccoli-static-compiler')

  function preprocess (tree) {
    tree = templateCompiler(tree);
    return tree
  }

  var sourceTree = broccoli.makeTree('js');
  var templates = pickFiles(sourceTree, {
    srcDir: '/templates',
    destDir: '/templates'
  })
  var appTemplates = preprocess(templates);
  return [appTemplates];
}
```

## What file types does it work with?

It's opinionated so you get both .hbs and .handlebars extensions out of the box

## What should I look out for?

It requires the destination directory name be templates (as shown in the above example)

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