Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Support for Jade 1.x #129

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

Conversation

martindale
Copy link

This fixes #118.

johngeorgewright and others added 4 commits April 19, 2014 17:30
Now that Express 4 no longer excepts objects as middleware we have to
use callbacks instead.

To keep asset-rack working in express 4, with some kind of fallback
capabilities for express 3, I'm proposing to specify the `Rack#handle`
method when adding the rack/asset as middleware. I've also upgraded
CoffeeScript, so I could easily bind the class's method to any instance
of it with the new fat-arrow syntax.

Another problem is the `express.Response#locals` property is no longer a
function. Therefore I've added the assets' "locals" property directly to
the express instance.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add support for Jade 1.0.0
3 participants