S
S
Stepgor2019-01-06 23:49:26
Node.js
Stepgor, 2019-01-06 23:49:26

How to include an EJS file after a condition?

How to include an EJS file after a condition? Here's something like this

<% if(true) %>
 <%-  include('../views/replays.ejs'); -%>
 <% }; %>

Without the condition, everything connects fine, but with - no

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question