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)
The problem likely was the missing semicolon after print(i) since parrot didn't support ASI (JavaScript’s Automatic Semicolon Insertion). This is fixed in #8.
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++) { %>
<% } %>
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)