Geddy EJS templates, import partial templates

For Geddy version 0.11.8.

Here is a typical directory listing for some template files.

> app > views > something >
--------------------------> index.html.ejs
--------------------------> _fruit.html.ejs
--------------------------> _apple.html.ejs

To correctly reference the sub templates in the index file, supply the 'something' folder in the path. Optionally: theData is an object that supplies data to the partial.

<%= partial('something/_fruit', {myData: theData}); %>

Posted: 08/01/2014