Closed cruel32 closed 6 years ago
-json
{ "name" : "csh", "eachTest" : [ {"value":1}, {"value":2}, {"value":3}, {"value":4} ] }
-html
<body> <%= name %> <!-- this output is correct--> <%= eachTest %> <!-- this output is not what you want. No loop. --> </body>
__
For anyone else that finds this closed issue without resolution:
<ul> <% _.forEach(eachTest, function(test) { %> <li><%- test.value %></li> <% }); %> </ul>
-json
-html
__