template/view-models/home.js
function home(context, cb) {
  var viewModel = _.extend(
    {
      package: helper.find(context.data, {kind: 'package'})[0]
    }, util.docletChildren(context, null, util.mainDocletKinds),
    util.docletChildren(context, null, util.subDocletKinds),
    util.rstMixin,
    _.pick(context, ['readme'])
  );

  logger.debug('home namespaces', viewModel.namespaces);

  util.view('home.rst', viewModel, cb);
}
function home(context, cb) {
  var viewModel = _.extend(
    {
      package: helper.find(context.data, {kind: 'package'})[0]
    }, util.docletChildren(context, null, util.mainDocletKinds),
    util.docletChildren(context, null, util.subDocletKinds),
    util.rstMixin,
    _.pick(context, ['readme'])
  );

  logger.debug('home namespaces', viewModel.namespaces);

  util.view('home.rst', viewModel, cb);
}
function home ( context , cb ) { var viewModel = _ . extend ( { package : helper . find ( context . data , { kind : 'package' } ) [ 0 ] } , util . docletChildren ( context , null , util . mainDocletKinds ) , util . docletChildren ( context , null , util . subDocletKinds ) , util . rstMixin , _ . pick ( context , [ 'readme' ] ) ) ; logger . debug ( 'home namespaces' , viewModel . namespaces ) ; util . view ( 'home.rst' , viewModel , cb ) ; }
The Mustache template to render the first page.
@param  {object}   context the current context
@param  {Function} cb      called after the generation has been done
The Mustache template to render the first page .