# grunt-we-ember-template

> An npm module for preprocess We.js templates and override templates if exists in we.js active theme folder

Latest version **0.0.3** (published 2014-11-09) · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install grunt-we-ember-template
pnpm add grunt-we-ember-template
yarn add grunt-we-ember-template
bun add grunt-we-ember-template
```

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 0.0.3 |
| Published | 2014-11-09 |
| First published | 2014-07-29 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=v0.8.1 |
| Dependencies | 3 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Alberto Souza |
| Maintainers | albertosouza |
| Keywords | Ember.js, Handlebars.js, Grunt.js, We.js, sails.js, gruntplugin |

## Links

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

## 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.5.0

## Recent versions

- 0.0.3 (latest) — 2014-11-09
- 0.0.2 — 2014-07-31
- 0.0.1 — 2014-07-29

## README

# grunt-we-ember-template

## An npm module for preprocess We.js templates and override templates if exists in we.js active theme folder

## A fork from [grunt-ember-template-compiler](https://github.com/mattjmorrison/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-we-ember-template --save-dev
```

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

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

## Usage Example:

```js
emberhandlebars: {
  compile: {
    options: {
      templateName: function(sourceFile){
        var newSource = sourcefile.replace('src/templates/');
        return newSource.replace('.handlebars');
      },
      // theme folder used to override templates
      // default to node_modules/we-theme-default/templates/ember/
      themeTemplatesFolder: 'node_modules/we-theme-default/templates/ember/'
    },
    // local templates
    files: [
      'src/templates/*.handlebars'
    ],
    dest: 'src/templates.js'
  }
}
```


## License
Copyright (c) 2014 Alberto Souza. Licensed under the MIT license.

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