I\'m using ejs in backend with nodejs. I\'d like to pass variable when include. When include the header, pass the page title.
index.ejs:
<% include he
As asked somewhere in the comments, we can also use a variable to be controled by a server, and here is how: <%- include("header",{my_tytle :`${myVar}`}) %>
<%- include("header",{my_tytle :`${myVar}`}) %>