ejs
ejs copied to clipboard
Be able to referance other file paths using ../
trafficstars
At the moment, things like <%- include("../components/nav.ejs") %> don't work. Now, there are some workarounds using rootpaths, but its just not as easy as using an actual implementation. Also, you're able to use ../ in normal HTML (like when referencing a stylesheet).
you can always use <%- include("/components/nav.ejs") %>, this is way better in case your page file is in a folder and you don't want to deal with nested paths