creationix/haml-js — Issue #55: putting inline javascript under :each breaks
Author: lashd
Created: 2011-12-09 02:20:07+00:00
State: open

__example:__

:each question in questions
- var temp = 'hello'

Browser reports: missing ) after argument list

And the following is logged to the console
```javascript
with (locals || {}) {
try {
var _$output = (function () {
var __result__ = [], __key__, question;
for (__key__ in questions) {
if (questions.hasOwnProperty(__key__)) {
question = questions[__key__];
__result__.push("";
var temp = 'hello';
_$output = _$output
)
;
}
}
return __result__.join("");
}).call(this);
return _$output;
} catch (e) {
return "\n

" + html_escape(e.stack) + "

\n";
}
}
```