1let str = "Hello <%= include('file', {person: 'John'}); %>",
2 fn = ejs.compile(str, {client: true});
3
4fn(data, null, function(path, d){ // include callback
5 // path -> 'file'
6 // d -> {person: 'John'}
7 // Put your code here
8 // Return the contents of file as a string
9}); // returns rendered string