Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Expose your Emblem views in the browser using connect-assets.
JavaScript
branch: master

This branch is 10 commits ahead, 16 commits behind troygoode:master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
example
test
.gitignore
.npmignore
.travis.yml
LICENSE
README.md
index.js
package.json

README.md

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', 'jade');
  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

Something went wrong with that request. Please try again.