code: function (ui, done) {
  
          var out = ui.pluginManager.hook("page", ui);
  
          done(null, {
              instance: {
                  clientJs:    ui.pluginManager.hook("client:js", ui),
                  templates:   ui.pluginManager.hook("templates", ui.getInitialTemplates(), ui),
                  pagesConfig: out.pagesConfig,
                  pages:       out.pagesObj,
                  pageMarkup:  out.pageMarkup
              }
          });
      }
docs: Default hooks do things like creating/joining JS files &
  building angular config
  @param ui
  @param done