I am including a header.def file in index.dot using {{#def.header}} snippet and rendering the index.dot file using the following snippet.
var dotjs = require('dot');
var dots = dotjs.process({ path: "./views"});
app.get('/',function(request, response){
response.send(dots.index());
});
What I also wish to do is render only the header on separate url. Something like:
app.get('/header',function(request, response){
response.send(dots.header()); // header.def is not compiled to a dot.header function
});