I'm working on the following code . It go through a can.List or an Array.
- <% people.each (function ( person ) { %>
- <li <%= (el)-> el.data('personInfo', person ) %>>
- <h2><%= person.attr('name') %> </h2>
- <p><%= person.attr('myStory') %></p>
- <hr>
- </li>
- <%}) %>
- {{#people }}
- <li {{ (el)-> el.data('personInfo', ???? ) }}>
- <h2>{{name}} </h2>
- <p>{{myStory}}</p>
- <hr>
- </li>
- {{/people}}
I have a fiddle here.
Please help me, thank you!!