We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The following test renders
<table><tbody><tbody><tr></tr></tbody></tbody></table>
instead of the expected
<table><tbody><tr></tr></tbody></table>
test("Model Test", function() { var renderer = can.view.mustache('<table>{{#data}}<tbody>{{#rows}}<tr></tr>{{/rows}}</tbody>{{/data}}</table>'); var div = document.createElement('div'); var dom = renderer({ data : new can.Model({ rows: [{ name : 'first' }] }) }); div.appendChild(dom); var expected = "<table><tbody><tr></tr></tbody></table>"; same(div.innerHTML, expected); });
Setting the data to a can.Observe renders the expected output as well as changing the template to
can.Observe
<table><tbody>{{#data}}{{#rows}}<tr></tr>{{/rows}}{{/data}}</tbody></table>
Or
<table><tbody>{{#data.rows}}<tr></tr>{{/data.rows}}</tbody></table>
The text was updated successfully, but these errors were encountered:
6d1a372
No branches or pull requests
The following test renders
instead of the expected
Setting the data to a
can.Observe
renders the expected output as well as changing the template toOr
The text was updated successfully, but these errors were encountered: