I use express.js and EJS as a template engine. I donβt understand how to use partial ones, I saw with examples, but the author used the mechanism of the JADE-template, so I donβt know how to apply it with EJS.
I have a simple view named: test.ejs and another .ejs file called part1.ejs
I need to show part1.ejs inside test.ejs.
I tried putting <% partial('part1', {}) %>
(in test.ejs), but nothing happens, it does not include this file.
Can someone give me an example?
Thanks!
Dail
source share