ollym/parrot — Issue #4: Partial For statement erroring
Author: qrpike
Created: 2011-12-03 15:47:48+00:00
State: open

Hey, Im LOVING this library and using it on my newest project.

It works if I do for example: <%=variable%>

If I do this:

<% for(var i = 0; i < 3; i++) { %>

I am div #<% print(i) %>

<% } %>

It breaks with:

SyntaxError: Unexpected identifier
at Object.render (/node.js/node_modules/parrot/index.js:165:9)
at /node.js/sql.js:54:14
at [object Object]. (fs.js:107:5)
at [object Object].emit (events.js:61:17)
at afterRead (fs.js:878:12)
at wrapper (fs.js:245:17)