lib/templating/listShortcuts.js
function listShortcuts(blocks, filePath) {
    var parser = parsers.getForFile(filePath);

    if (!parser) {
        return Immutable.List();
    }

    return blocks
        .map(function(block) {
            return block.getShortcuts();
        })
        .filter(function(shortcuts) {
            return (
                shortcuts &&
                shortcuts.acceptParser(parser.getName())
            );
        });
}
function listShortcuts(blocks, filePath) {
    var parser = parsers.getForFile(filePath);

    if (!parser) {
        return Immutable.List();
    }

    return blocks
        .map(function(block) {
            return block.getShortcuts();
        })
        .filter(function(shortcuts) {
            return (
                shortcuts &&
                shortcuts.acceptParser(parser.getName())
            );
        });
}
function listShortcuts ( blocks , filePath ) { var parser = parsers . getForFile ( filePath ) ; if ( ! parser ) { return Immutable . List ( ) ; } return blocks . map ( function ( block ) { return block . getShortcuts ( ) ; } ) . filter ( function ( shortcuts ) { return ( shortcuts && shortcuts . acceptParser ( parser . getName ( ) ) ) ; } ) ; }
Return a list of all shortcuts that can apply
to a file for a TemplatEngine

@param {List<TemplateBlock>} engine
@param {String} filePath
@return {List<TemplateShortcut>}
Return a list of all shortcuts that can apply to a file for a TemplatEngine