0.0.6 • Published 12 years ago
angular-templates-brunch v0.0.6
Wrap templates in an AngularJS module for Brunch.IO

For each template, wrap around in a shared AngularJS module called
appTemplates by default with each template file's path as the template URL.
See $templateCache for more
information.
Installation
npm install --save angular-templates-brunch
Usage
- Set
joinToattribute fortemplatesinconfig.coffee, e.g.
templates:
joinTo:
'templates.js': /^app/- In your markup, include
templates.js:
<script type="text/javascript" src="/templates.js"></script>- Your app module must require an
appTemplatesmodule:
angular.module('MyApp', [
...
'appTemplates'
...
]);- Get a particular template by its path.
$routeProvider.when('/home', { templateUrl: 'app/home/home.html' });- Run Brunch (e.g.
brunch build)!
Options
module
Specify the module to place the templates in
Default: appTemplates
plugins:
ng_templates:
module: 'MyModule'