garnet.js
function(partialPath, locals) {
    var normalizedPartialPath = normalizeTemplatePath(partialPath, path.dirname(normalizedTemplatePath));
    return exports.compile(normalizedPartialPath)(locals);
  }
function(partialPath, locals) {
    var normalizedPartialPath = normalizeTemplatePath(partialPath, path.dirname(normalizedTemplatePath));
    return exports.compile(normalizedPartialPath)(locals);
  }
this function is available in the view for rendering partials