Socket
Socket
Sign inDemoInstall

connect-assets-jade

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

connect-assets-jade

Expose your jade views in the browser using connect-assets.


Version published
Weekly downloads
45
decreased by-57.14%
Maintainers
1
Weekly downloads
 
Created
Source

connect-assets-jade

Expose your jade views in the browser using connect-assets.

build status

Tips are welcome, but not expected.

Installation (via npm)

$ npm install connect-assets-jade

Usage

See example app in /example directory.

Integration with connect-assets is done like so:

var express = require('express')
  , assets = require('connect-assets')
  , jadeAssets = require('connect-assets-jade') // <-- here
  , PORT = 3000;

var app = express.createServer();
app.configure(function(){
  app.set('views', __dirname + '/views');
  app.set('view engine', 'jade');
  app.set('view options', {layout: false});

  app.use(assets({
    jsCompilers: {
      jade: jadeAssets() // <-- and here
    }
  }));

  app.use(app.router);
});

app.get('/', function(req, res){
  res.render('home');
});

app.listen(PORT, function(){
  console.log('Example app for connect-assets-jade running on port %d.', PORT);
});

Credits

License

MIT License

Author

Troy Goode (troygoode@gmail.com)

Keywords

FAQs

Package last updated on 24 Jul 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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc