broccoli-angular-templates-cache
v1.0.3
Published
Broccoli plugin to inline angular templates using $templateCache
Downloads
3
Maintainers
Readme
Broccoli AngularJs Template Cache
Broccoli plugin to inline angular templates using $templateCache
Install
npm install --save broccoli-angular-templates-cache
Usage
var angularTemplates = require("broccoli-angular-templates-cache");
module.exports = angularTemplates('templates', {
srcDir: './',
destDir: './',
prepend: 'partials/',
strip: 'templates/',
minify: {
collapseWhitespace: true
},
fileName:'templates.js',
moduleName:'angularApp'
});
Options
srcDir
path to source directory
destDir
path to destination directory
prepend
Type: String
Default: ``
Path fragment to insert before the template path
strip
Type: String
Default: ``
Path fragment to remove from template path (from left)
minify
Type: Object
Default: false
Configs to pass on html-minifier. If ommitted, the HTML is kept untouched
moduleName
Name of $templateCache
module