lib/output/callPageHook.js
function callPageHook(name, output, page) {
    return callHook(
        name,

        function(out) {
            return Api.encodePage(out, page);
        },

        function(out, result) {
            return Api.decodePage(out, page, result);
        },

        output
    );
}
function callPageHook(name, output, page) {
    return callHook(
        name,

        function(out) {
            return Api.encodePage(out, page);
        },

        function(out, result) {
            return Api.decodePage(out, page, result);
        },

        output
    );
}
function callPageHook ( name , output , page ) { return callHook ( name , function ( out ) { return Api . encodePage ( out , page ) ; } , function ( out , result ) { return Api . decodePage ( out , page , result ) ; } , output ) ; }
Call a hook for a specific page

@param {String} name
@param {Output} output
@param {Page} page
@return {Promise<Page>}
Call a hook for a specific page