Skip to content

Commit

Permalink
spacebars: Add test for compilation within tables
Browse files Browse the repository at this point in the history
Currently all optimisation within tables is avoided. Even
for nested elements.
  • Loading branch information
nathan-muir committed Mar 18, 2021
1 parent 81f3de0 commit b0cffc6
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions packages/spacebars-compiler/compiler_output_tests.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -320,3 +320,14 @@ function() {
}), HTML.Raw("<div>a</div><div>b</div>")));
}
"""

run "<table><colgroup><col></colgroup><tr><td>aaa</td><td>bbb</td></tr></table>",
"""
function() {
var view = this;
return HTML.TABLE(
HTML.Raw("<colgroup><col></colgroup>"),
HTML.TR(HTML.Raw("<td>aaa</td><td>bbb</td>"))
);
}
"""

0 comments on commit b0cffc6

Please sign in to comment.