-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
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
No output in table #184
Comments
+1 |
1 similar comment
+1 |
@TLINDEN Can you make a jsfiddle for this? |
Wrap the handlebars text within the table in comments, like so:
Theory: the browser does not dig text in any part of a table other than in a td/th. The browser moves that text outside of the table. I'll bet that you're not using script tags for your template (I'm not either), and if you did, the browser would ignore what it would otherwise think is out-of-place text. |
I've used handlebars in tables without issue. If this is still an issue, please provide a fiddle with 1.0.rc.1. |
Using the following input data:
and the following template:
I get:
As you can see, the second each loop works as expected but the first one doesn't. It doesn't matter if I put the each loop using the table after the other.
I can also put multiple each loops with
tags as in my example in one template, which works well. But it doesn't if I use a table. Since there is one empty column generated in the table, it looks as if handlebars DOES execute the loop but dies for whatever reason after the first loop.
I'm using 1.0.0 Beta 6.
The text was updated successfully, but these errors were encountered: