lib/plugin-templates.js
function getPluginTemplate(name, context) {
  return function (cb) {
    if (cache[name]){
      cache[name](context, function (err, res) {
        if (err) return cb(err);
        cb(null, [name, res]);
      });
    } else {
      cb(null, null);
    }
  };
}
function getPluginTemplate(name, context) {
  return function (cb) {
    if (cache[name]){
      cache[name](context, function (err, res) {
        if (err) return cb(err);
        cb(null, [name, res]);
      });
    } else {
      cb(null, null);
    }
  };
}
This generates a generator that will render the appropriate block in a form suitable for async.parallel.