I am trying to use Embedded Javascript renderer for node: https://github.com/visionmedia/ejs
I would like to know how I can include another view file (partial) inside a .ejs view file.
With Express 3.0:
<%- include myview.ejs %>
the path is relative from the caller who includes the file, not from the views directory set with app.set("views", "path/to/views")
.
(Update: the newest syntax for ejs v3.0.1 is <%- include('myview.ejs') %>
)