ejs icon indicating copy to clipboard operation
ejs copied to clipboard

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

Open zhouseahe opened this issue 11 years ago • 4 comments

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",

zhouseahe avatar Jan 09 '15 06:01 zhouseahe

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.

mde avatar Jan 09 '15 06:01 mde

@mde thx, fixed under 1.0.0 will be better

zhouseahe avatar Jan 09 '15 16:01 zhouseahe

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

mde avatar Jan 09 '15 20:01 mde

thx a lot

zhouseahe avatar Jan 10 '15 09:01 zhouseahe