package
Adds Jade support to brunch with angularjs template cache modules.
npm install jade-angularjs-brunch2GitHub-flavored package documentation.
Across all versions.
Download trend unavailable.
Runtime metadata.
Automatic compiler Jade templates to AngularJS modules for Brunch.IO
Based of @GulinSS's work.
"jade-angularjs-brunch" : "1.6"
joinTo:
'js/dontUseMe' : /^app/ #slutty hack for Jade-auto-compiling plugins:
jade:
pretty: yes # Adds pretty-indentation whitespaces to output (false by default)
jade_angular:
modules_folder: 'templates'
locals: {}if your file is at app/src/blog/templates/article/index.jade
_public/js/templates.js:
angular.module('login.templates', [])
.run(['$templateCache', function($templateCache) {
return $templateCache.put('/blog/article/index', [
'This is content of your jade-file',''].join("\n"));
}])This plugin was created to fix two things in the original jade-angularjs-brunch :
blog/templates/article/index.jade give blog/templates/index.html because it only takes the last part, which is incorrect.Estimated unpacked size across 22 packages.
4.3 MB
Includes dependencies.
3 direct · 2 outdated