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
when I use @Index to index into an array like {{this.[@Index]}} I get an empty response
Following is my Code
Data Object
var aaMatrix = { device : ["iPhone","iPad","iPadMini"], os : ["iOS4","iOS5"], matrix : [ [{data:true},{data:true}], [{data:true},{data:true}], [{data:false},{data:false}] ] };
Template:
<script id="Tmpl" type="text/x-handlebars-template"> <table id = "table"> {{#each matrix}} <tr id = "{{@index}}"> <td>{{this.[@index]}}</td> <!--also tried <td>{{this.[{{@index}}]}}</td> --> {{#each this}} <td id = "{{@index}}"> {{#if this.data}} yes {{else}} No {{/if}} </td> {{/each}} </tr> {{/each}} </table> </script>
The text was updated successfully, but these errors were encountered:
This is a known issue. Checkout #569 for workaround and future status.
Sorry, something went wrong.
No branches or pull requests
when I use @Index to index into an array like
{{this.[@Index]}}
I get an empty response
Following is my Code
Data Object
Template:
The text was updated successfully, but these errors were encountered: