All my Dustjs templates are kept precompiled in a database. To render the template I have this function
tmplfn(options, function (err, html) {
res.write(html); //res is the response object
res.end();
});
But this fails when the templates have got partials in it because it is not able to locate the partial. How can I resolve this issue? Is there any mechanism to register my partial with the dustengine?