It seems that EJS is not yet supported. However, I found a workaround for this problem. In the above setup, the pain point is for all partial files that you need to mention relative paths, and if you use refactoring code that gets painful. Thus, instead of mentioning the relative path in each of them, I declare the rootPath variable once at the top of the page, and there I give the path to get to the house. So in each inclusion, I can simply specify the relative path as the path from root.
For example, in guide/index.ejs I mention the following at the top of the ejs file
<% var rootPath = '../'; %>
and the code in the ejs file looks below
<%- include(rootPath + 'partials/header'); %>
Your html code
<%- include(rootPath + 'partials/footer'); %>
So in case I refactor index.ejs to some other folder I need to do is change the rootPath value only right away.
karthikdivi
source share