build/updates/builder.js
function (cb) {
            var self = this,
                stack = new Y.Parallel();

            Y.log('Preparing index.html', 'info', 'builder');
            self.renderIndex(stack.add(function (html, view) {
                stack.html = html;
                stack.view = view;
                if (self.options.dumpview) {
                    Y.Files.writeFile(path.join(self.options.outdir, 'json', 'index.json'), JSON.stringify(view), stack.add(noop));
                }
                Y.Files.writeFile(path.join(self.options.outdir, 'index.html'), html, stack.add(noop));
            }));

            stack.done(function ( /* html, view */ ) {
                Y.log('Writing index.html', 'info', 'builder');
                cb(stack.html, stack.view);
            });
        }
function (cb) {
            var self = this,
                stack = new Y.Parallel();

            Y.log('Preparing index.html', 'info', 'builder');
            self.renderIndex(stack.add(function (html, view) {
                stack.html = html;
                stack.view = view;
                if (self.options.dumpview) {
                    Y.Files.writeFile(path.join(self.options.outdir, 'json', 'index.json'), JSON.stringify(view), stack.add(noop));
                }
                Y.Files.writeFile(path.join(self.options.outdir, 'index.html'), html, stack.add(noop));
            }));

            stack.done(function ( /* html, view */ ) {
                Y.log('Writing index.html', 'info', 'builder');
                cb(stack.html, stack.view);
            });
        }
function ( cb ) { var self = this , stack = new Y . Parallel ( ) ; Y . log ( 'Preparing index.html' , 'info' , 'builder' ) ; self . renderIndex ( stack . add ( function ( html , view ) { stack . html = html ; stack . view = view ; if ( self . options . dumpview ) { Y . Files . writeFile ( path . join ( self . options . outdir , 'json' , 'index.json' ) , JSON . stringify ( view ) , stack . add ( noop ) ) ; } Y . Files . writeFile ( path . join ( self . options . outdir , 'index.html' ) , html , stack . add ( noop ) ) ; } ) ) ; stack . done ( function ( /* html, view */ ) { Y . log ( 'Writing index.html' , 'info' , 'builder' ) ; cb ( stack . html , stack . view ) ; } ) ; }
Generates the index.html file
@method writeIndex
@param {Callback} cb The callback to execute after it's completed
Generates the index . html file