neocotic/template — Issue #77: Content script broken
Author: neocotic
Created: 2012-03-06 09:27:17+00:00
State: open
Labels: Bug, CoffeeScript, Content Scripts

While investigating #76 I noticed that CoffeeScript is incorrectly compiling the [content script](https://github.com/neocotic/template/blob/master/src/lib/content.coffee#L57).

``` coffeescript
description: getMeta 'description'
keywords: getMeta 'keywords', yes
lastModified: document.lastModified
```

Is being compiled as...

``` javascript
keywords: getMeta('keywords')
}, true, {
lastModified: document.lastModified,
```

This is resulting in most of the derived values from being discarded. Fortunately, the fix is simply to wrap the arguments in parenthesis.