sammy
sammy copied to clipboard
template rander cannot for each?
I'm use sammy.template plugins rander my application.
on my page foreach can't rander .
give me callback error info
Uncaught SyntaxError: Unexpected token ? at new Function (<anonymous>) at srender (sammy.template.js:34) at context_prototype.template [as html] (sammy.template.js:135) at context_prototype.interpolate (sammy-0.7.6.min.js:5) at Sammy.RenderContext.<anonymous> (sammy-0.7.6.min.js:5)
who tell me why?
Can you give a code sample?
Something like this should work. <% fields.forEach(function(field) { %> ..... <% }); %>