# ng-templates-brunch

> Wrap templates in an AngularJS module for Brunch.IO

Latest version **0.0.3** (published 2013-11-15) · 0 weekly downloads

## Install

```sh
npm install ng-templates-brunch
pnpm add ng-templates-brunch
yarn add ng-templates-brunch
bun add ng-templates-brunch
```

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; low quality score; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.3 |
| Published | 2013-11-15 |
| First published | 2013-11-08 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=0.8 |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | yes |
| GitHub stars | 0 |
| Author | Kenneth Kan |
| Maintainers | kenhkan |

## Links

- npm: https://www.npmjs.com/package/ng-templates-brunch
- Repository: git@github.com:kenhkan/ng-templates-brunch
- Homepage: https://github.com/kenhkan/ng-templates-brunch
- Issues: https://github.com/kenhkan/ng-templates-brunch/issues
- npm.io page: https://npm.io/package/ng-templates-brunch

## Dependencies (1)

- [coffee-script](https://npm.io/package/coffee-script.md) ~1.6.3

## Recent versions

- 0.0.3 (latest) — 2013-11-15
- 0.0.2 — 2013-11-09
- 0.0.1 — 2013-11-08
- 0.0.0 — 2013-11-08

## README

# Wrap templates in an AngularJS module for Brunch.IO<br/>[![Dependency Status](https://david-dm.org/kenhkan/ng-templates-brunch.png)](https://david-dm.org/kenhkan/ng-templates-brunch) [![Stories in Ready](https://badge.waffle.io/kenhkan/ng-templates-brunch.png)](http://waffle.io/kenhkan/ng-templates-brunch)

For each template, wrap around in a shared AngularJS module called
`templates` by default with each template file's path as the template URL.
See [$templateCache](http://docs.angularjs.org/api/ng.$templateCache) for more
information.


## Installation

`npm install --save ng-templates-brunch`


## Usage

1. Set `joinTo` attribute for `templates` in `config.coffee`, e.g.

```coffee
templates:
  joinTo:
    'templates.js': /^app/
```

2. In your markup, include `templates.js`:

```coffee
<script type="text/javascript" src="/templates.js"></script>
```

3. Your app module must require an `templates` module:

```coffee
angular.module('MyApp', [
  ...
  'templates'
  ...
]);
```

4. Get a particular template by its path.

```coffee
$routeProvider.when('/home', { templateUrl: 'app/home/home.html' });
```

5. Run Brunch (e.g. `brunch build`)!


## Options

### module

Specify the module to place the templates in

Default: `templates`

```coffee
plugins:
  ngTemplates:
    module: 'MyModule'
```

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