tj / ejs

Embedded JavaScript templates for node
4.47k stars 513 forks source link

if tag don't closed , it should report a error #199

Open zhouseahe opened 9 years ago

zhouseahe commented 9 years ago

my ejs file doesn't close properly.

<%
if(page.messages.length < 1){
%>
<tr><td colspan="8">no message </td></tr>
<%
}

just waiting ....and no error , doesn't exec response render

 res.render('send-history',input); // pending

"ejs": "~0.8.4", "express": "3.2.5",

mde commented 9 years ago

Looks like you need to upgrade either to 1.0.0, or to 2.0.x. There are passing tests for this for both versions.

zhouseahe commented 9 years ago

@mde thx, fixed under 1.0.0 will be better

mde commented 9 years ago

It is fixed in 1.0.0. Just upgrade to that version in your package.json. But 1.x is no longer being maintained. The current release is 2.x, which is here: https://github.com/mde/ejs

zhouseahe commented 9 years ago

thx a lot