mauricemach/zappa — Issue #113: `@enable 'serve *'` does nothing -- documentation disparity?
Author: namuol
Created: 2011-12-02 23:25:37+00:00
State: open

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 -- 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:
```coffeescript
require('zappa') ->
@enable 'serve jquery'
```
Then, try visiting http://localhost:3000/zappa/jquery.js -- no dice.

However, this works:
```coffeescript
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.