lib/output/ebook/onPage.js
function onPage(output, page) {
    var options = output.getOptions();

    // Inline assets
    return Modifiers.modifyHTML(page, [
        Modifiers.inlineAssets(options.get('root'), page.getFile().getPath())
    ])

    // Write page using website generator
    .then(function(resultPage) {
        return WebsiteGenerator.onPage(output, resultPage);
    });
}
function onPage(output, page) {
    var options = output.getOptions();

    // Inline assets
    return Modifiers.modifyHTML(page, [
        Modifiers.inlineAssets(options.get('root'), page.getFile().getPath())
    ])

    // Write page using website generator
    .then(function(resultPage) {
        return WebsiteGenerator.onPage(output, resultPage);
    });
}
function onPage ( output , page ) { var options = output . getOptions ( ) ; // Inline assets return Modifiers . modifyHTML ( page , [ Modifiers . inlineAssets ( options . get ( 'root' ) , page . getFile ( ) . getPath ( ) ) ] ) // Write page using website generator . then ( function ( resultPage ) { return WebsiteGenerator . onPage ( output , resultPage ) ; } ) ; }
Write a page for ebook output

@param {Output} output
@param {Output}
Write a page for ebook output