lib/api/encodeGlobal.js
function(name, blockData) {
                var block = blocks.get(name) || defaultBlocks.get(name);
                return Promise(block.applyBlock(blockData, result));
            }
function(name, blockData) {
                var block = blocks.get(name) || defaultBlocks.get(name);
                return Promise(block.applyBlock(blockData, result));
            }
function ( name , blockData ) { var block = blocks . get ( name ) || defaultBlocks . get ( name ) ; return Promise ( block . applyBlock ( blockData , result ) ) ; }
Apply a templating block and returns its result

@param {String} name
@param {Object} blockData
@return {Promise|Object}
Apply a templating block and returns its result