Skip to content

Commit

Permalink
Issue creationix#55. Fixed inline JavaScript under :each break
Browse files Browse the repository at this point in the history
  • Loading branch information
[email protected] committed Dec 24, 2011
1 parent 7453889 commit 8c50210
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/js_after_each.haml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
:each question in questions
- var temp = 'hello'
%div&= question
%div&= temp
1 change: 1 addition & 0 deletions test/js_after_each.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<div>question 1<div>hello</div></div><div>question 2<div>hello</div></div><div>question 3<div>hello</div></div>
5 changes: 5 additions & 0 deletions test/js_after_each.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
locals: {
questions: ["question 1", "question 2", "question 3"]
}
}

0 comments on commit 8c50210

Please sign in to comment.