Does ejs support if else syntax?
漂亮男人
漂亮男人 2017-05-31 10:40:46
0
1
777

Just started using ejs template and found out

<% if(...) { %> xxx <% } %>

But if

is added after
<% if(...) { %> xxx <% } %><% else { %> xxx <% } %>

The compilation directly reports an error. Does ejs not support else syntax?

漂亮男人
漂亮男人

reply all(1)
某草草

if’s } is placed in front of else

<% if(...) { %> xxx <% } else { %> xxx <% } %>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template