expressjs / express-expose

Expose raw js, objects, and functions to the client-side (awesome for sharing utils, settings, current user data etc)
MIT License
299 stars 26 forks source link

script!= javascript express 3 #23

Closed pgherveou closed 12 years ago

pgherveou commented 12 years ago

javascript var isn' t exposed anymore using expose with express 3 ?

creating an app with express command line, adding expose and this line to the template this failed for me

script!= javascript
tj commented 12 years ago

hmm ill check it out tonight

pgherveou commented 12 years ago

Well actually it works fine, my issue was that I was calling app.expose after app.use(app.router) the test I wrote might not be relevant then ...

tj commented 12 years ago

it kind of is but I'll revert for now

pgherveou commented 12 years ago

Ok, don't know if this is related or not but it looks like res.expose is broken too

tj commented 12 years ago

tests pass fine for me