Answer the question
In order to leave comments, you need to log in
How to get rid of extra padding in EJS?
Good morning!
How to get rid of extra new lines in the EJS template engine, I will immediately say that I use the master version 2.3.4, yes I tried -%>
, yes I tried <%_ _%>
.
Actually the code itself:
<%
var names = ["a", "b", "c"]
%><% names.forEach(function (name) { -%>
name: <%= name %>
<% }) -%>
name: a
name: b
name: c
name: a
name: b
name: c
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question