Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

jade-angularjs-brunch2

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jade-angularjs-brunch2

Adds Jade support to brunch with angularjs template cache modules.

  • 1.6.1
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Weekly downloads
 
Created
Source

jade-angularjs-brunch2

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:

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

Add to plugin section in config.coffee:

  plugins:
        jade:
              pretty: yes # Adds pretty-indentation whitespaces to output (false by default)
        jade_angular:
              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

_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"));
}])

Note

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.

FAQs

Package last updated on 23 Jun 2013

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc