Adds Jade support to brunch with angularjs template cache modules.
Last updated 7 years ago by Nami-Doc .
Repository · Original npm · Tarball · package.json
$ cnpm install jade-angularjs-brunch2 
SYNC missed versions from official npm registry.


Automatic compiler Jade templates to AngularJS modules for Brunch.IO

Based of @GulinSS's work.

Sample of settings:

Add to dependencies section in package.json of your project:

"jade-angularjs-brunch" : "1.6"

Add to templates section in config.coffee:

    'js/dontUseMe' : /^app/ #slutty hack for Jade-auto-compiling

Add to plugin section in config.coffee:

              pretty: yes # Adds pretty-indentation whitespaces to output (false by default)
              modules_folder: 'templates'
              locals: {}
  • modules_folder: folder with your template
  • locals: context for jade compiler

Now you can get angular.js modules:

if your file is at app/src/blog/templates/article/index.jade


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 :

  • multiple files for templates
  • broken naming for after-dir parts. Ie blog/templates/article/index.jade give blog/templates/index.html because it only takes the last part, which is incorrect.

Current Tags

  • 1.6.1                                ...           latest (7 years ago)

2 Versions

  • 1.6.1                                ...           7 years ago
  • 1.6.0                                ...           7 years ago
Maintainers (1)
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 2
Dependencies (3)
Dev Dependencies (2)
Dependents (0)

Copyright 2014 - 2016 © taobao.org |