lib/output/ebook/onFinish.js
function writeSummary(output) {
    var options = output.getOptions();
    var prefix = options.get('prefix');

    var filePath = SUMMARY_FILE;
    var engine = WebsiteGenerator.createTemplateEngine(output, filePath);
    var context = JSONUtils.encodeOutput(output);

    // Render the theme
    return Templating.renderFile(engine, prefix + '/summary.html', context)

    // Write it to the disk
    .then(function(tplOut) {
        return writeFile(output, filePath, tplOut.getContent());
    });
}
function writeSummary(output) {
    var options = output.getOptions();
    var prefix = options.get('prefix');

    var filePath = SUMMARY_FILE;
    var engine = WebsiteGenerator.createTemplateEngine(output, filePath);
    var context = JSONUtils.encodeOutput(output);

    // Render the theme
    return Templating.renderFile(engine, prefix + '/summary.html', context)

    // Write it to the disk
    .then(function(tplOut) {
        return writeFile(output, filePath, tplOut.getContent());
    });
}
function writeSummary ( output ) { var options = output . getOptions ( ) ; var prefix = options . get ( 'prefix' ) ; var filePath = SUMMARY_FILE ; var engine = WebsiteGenerator . createTemplateEngine ( output , filePath ) ; var context = JSONUtils . encodeOutput ( output ) ; // Render the theme return Templating . renderFile ( engine , prefix + '/summary.html' , context ) // Write it to the disk . then ( function ( tplOut ) { return writeFile ( output , filePath , tplOut . getContent ( ) ) ; } ) ; }
Write the SUMMARY.html

@param {Output}
@return {Output}
Write the SUMMARY . html