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

caching in script files #7

Open weepy opened 13 years ago

weepy commented 13 years ago

first off, neat project.

If a project had a large of Javascript that was exposed to the client side (e.g. several modules), would it make sense to have these as "script" includes rather than writing them into the page ?

J

tj commented 13 years ago

yeah, definitely, I wouldn't mind getting that in, I suppose at that point it becomes more like browserify so it might be better to keep express-expose for small request specific utils etc

weepy commented 13 years ago

perhaps - tho I like the way expose works better than browserify.

On Fri, Jul 29, 2011 at 6:00 PM, visionmedia < reply@reply.github.com>wrote:

yeah, definitely, I wouldn't mind getting that in, I suppose at that point it becomes more like browserify so it might be better to keep express-expose for small request specific utils etc

Reply to this email directly or view it on GitHub: https://github.com/visionmedia/express-expose/issues/7#issuecomment-1682846

tj commented 13 years ago

i haven't used browserify. im generally not a fan of magical scripts since it's not necessarily obvious where they were generated, but might be something worth adding some day