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.
npm install --save angular-templates-brunch
joinTo
attribute for templates
in config.coffee
, e.g.templates:
joinTo:
'templates.js': /^app/
templates.js
:<script type="text/javascript" src="https://github.com/kenhkan/angular-templates-brunch/raw/master/templates.js"></script>
appTemplates
module:angular.module('MyApp', [
...
'appTemplates'
...
]);
$routeProvider.when('/home', { templateUrl: 'app/home/home.html' });
brunch build
)!Specify the module to place the templates in
Default: appTemplates
plugins:
ng_templates:
module: 'MyModule'