Quantcast
Channel: Include partial with ejs - Stack Overflow
Browsing all 4 articles
Browse latest View live

Answer by lawrghita for Include partial with ejs

If I use this folder structure:../views/partials/header.ejs../views/partials/footer.ejs../views/users.ejsthen in users.ejs:<%- include('./partials/header.ejs')...

View Article



Answer by Prathamesh More for Include partial with ejs

Try to use this new syntax<%- include("partials/header") %><%- include("partials/footer") %>

View Article

Answer by Kevin T. for Include partial with ejs

try this <%- include('../common/menu.ejs') %>docs http://ejs.co/#docs

View Article

Include partial with ejs

I'm trying to include a menu in my page with this code:<%- include ../common/menu %>Here is the file directory: /views/common/menu.ejsHere is my menu.ejs:<div class="button"...

View Article
Browsing all 4 articles
Browse latest View live




Latest Images