# grunt-ember-template-compiler

> An npm module for using ember-template-compiler with Grunt

Latest version **1.7.0** (published 2014-11-03) · 0 weekly downloads

## Install

```sh
npm install grunt-ember-template-compiler
pnpm add grunt-ember-template-compiler
yarn add grunt-ember-template-compiler
bun add grunt-ember-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.0 |
| Published | 2014-11-03 |
| First published | 2013-08-04 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=v0.8.1 |
| Dependencies | 3 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 3 |
| Author | Matthew J. Morrison |
| Maintainers | mattjmorrison, toranb |
| Keywords | Ember.js, Handlebars.js, Grunt.js |

## Links

- npm: https://www.npmjs.com/package/grunt-ember-template-compiler
- Repository: https://github.com/mattjmorrison/grunt-ember-template-compiler
- Issues: https://github.com/mattjmorrison/grunt-ember-template-compiler/issues
- npm.io page: https://npm.io/package/grunt-ember-template-compiler

## Dependencies (3)

- [glob](https://npm.io/package/glob.md) *
- [mkdirp](https://npm.io/package/mkdirp.md) *
- [ember-template-compiler](https://npm.io/package/ember-template-compiler.md) 1.7.0

## Recent versions

- 1.7.0 (latest) — 2014-11-03
- 1.5.0 — 2014-03-31
- 1.4.1 — 2014-03-18
- 1.4.0 — 2014-03-05
- 1.3.0 — 2014-01-08
- 1.2.0 — 2013-12-01
- 1.1.2 — 2013-10-27
- 1.0.6 — 2013-08-24
- 1.0.5 — 2013-08-04
- 1.0.4 — 2013-08-04
- 1.0.3 — 2013-08-04
- 1.0.2 — 2013-08-04
- 1.0.1 — 2013-08-04
- 1.0.0 — 2013-08-04

## README

# grunt-ember-template-compiler


## Getting Started

If you haven't used [Grunt](http://gruntjs.com/) before, be sure to check out the [Getting Started](http://gruntjs.com/getting-started) guide, as it explains how to create a [Gruntfile](http://gruntjs.com/sample-gruntfile) as well as install and use Grunt plugins. Once you're familiar with that process, you may install this plugin with this command:

```shell
npm install grunt-ember-template-compiler --save-dev
```

Once the plugin has been installed, it may be enabled inside your Gruntfile with this line of JavaScript:

```js
grunt.loadNpmTasks('grunt-ember-template-compiler');
```

## Usage Example:

```js
emberhandlebars: {
  compile: {
    options: {
      templateName: function(sourceFile){
        var newSource = sourcefile.replace('src/templates/');
        return newSource.replace('.handlebars');
      }
    },
    files: [
      'src/templates/*.handlebars'
    ],
    dest: 'src/templates.js'
  }
}
```

## MultiTask Usage Example:

```js
emberhandlebars: {
  task_one: {
    options: {
      templateName: function(sourceFile){
        var newSource = sourcefile.replace('src/one/templates/');
        return newSource.replace('.handlebars');
      }
    },
    files: [
      'src/one/templates/*.handlebars'
    ],
    dest: 'src/one/templates.js'
  },
  task_two: {
    options: {
      templateName: function(sourceFile){
        var newSource = sourcefile.replace('src/two/templates/');
        return newSource.replace('.handlebars');
      }
    },
    files: [
      'src/two/templates/*.handlebars'
    ],
    dest: 'src/two/templates.js'
  }
}
```

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