As I wrote in the title. In Ejs what's the difference between <%=
, <%
and <%-
? for example I saw this code <% include ../partials/header.ejs %>
, and then there is this code <%= title %>
. I also saw <%-
somewhere but cannot find a code example anywhere. So what's the difference? When do I use which?
I found this but it's for ruby on rails
Difference between <% %> and <%= %> in RoR