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

@enable 'serve *' does nothing -- documentation disparity? #113

Open
namuol opened this issue Dec 2, 2011 · 2 comments
Open

@enable 'serve *' does nothing -- documentation disparity? #113

namuol opened this issue Dec 2, 2011 · 2 comments

Comments

@namuol
Copy link

namuol commented Dec 2, 2011

Without digging too deeply into recent changelists, it looks like using @enable 'serve jquery' or similar does nothing.

The "PicoChat" example still works, but only because it runs the @client method at some point, which -- I realized after looking at zappa.coffee -- causes @use 'zappa' to be called, which in turn seems to automatically do what @enable 'serve jquery', 'serve sammy' would do (among other things).

To see what I mean, try running the following app:

require('zappa') ->
  @enable 'serve jquery'

Then, try visiting http://localhost:3000/zappa/jquery.js -- no dice.

However, this works:

require('zappa') ->
  @use 'zappa'

Now, http://localhost:3000/zappa/jquery.js yields what we expect.

So as a workaround, I just @use 'zappa' in all my apps that need jquery or sammy, but the real fix might involve some minor code changes or a documentation update.

@TylerLH
Copy link

TylerLH commented Feb 4, 2012

Thanks for noting this. I just ran into the same issue.

@iangreenleaf
Copy link

Yeah, I think it's a documentation change that's needed. Zappa is now bundling some connect middleware to serve the vendor javascript, and it looks like an intentional change on @mauricemach's part.

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

No branches or pull requests

3 participants