EJS include file relative to project root
I am using Express and EJS to build a site and I have a directory structure somthing like: +--www/ | +--partials/ | | | +--header.ejs | +--(a bunch of ejs files) | +--guide | | | +--index.html | +--(other files) | +--index.html In both of the index.html files shown in my example, the <% include ... %> command would be different, even if referencing the same included file. Also if I were to say include header.ejs and then header.ejs has an include for another partial, the whole system breaks down because they are all looking for files in different locations. To make management easier, I'm