Socket
Book a DemoInstallSign in
Socket

connect-assets-emblem

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

connect-assets-emblem

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

latest
npmnpm
Version
0.0.2
Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

connect-assets-emblem

Expose your emblem views to Ember in the browser using connect-assets.

Forked and adapted from connect-assets-jade.

Build Status

Installation (via npm)

$ npm install connect-assets-emblem

Usage

See example app in /example directory.

Integration with connect-assets is done like so:

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

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

  app.use(assets({
    jsCompilers: {
      emblem: emblemAssets() // <-- 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-emblem running on port %d.', PORT);
});

Credits

  • Troy Goode for writing the original connect-assets-jade module for doing the same thing with jade templates.

License

MIT License

Author

Visnu Pitiyanuvath

Keywords

connect-assets

FAQs

Package last updated on 20 Apr 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