ejs icon indicating copy to clipboard operation
ejs copied to clipboard

Be able to referance other file paths using ../

Open quick007 opened this issue 4 years ago • 1 comments
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).

quick007 avatar Mar 30 '21 04:03 quick007

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

dimitriiBirsan avatar Dec 17 '21 10:12 dimitriiBirsan