lib/boilerplate.view.js
function buildViewStatics( def, code ) {
    try {
        let statics = def[ "view.statics" ];

        if ( typeof statics === 'undefined' ) return;
        if ( typeof statics === 'string' ) statics = [ statics ];
        else if ( !Array.isArray( statics ) ) {
            throw Error( "view.statics must be a string or an array of strings!" );
        }

        statics.forEach( function ( name ) {
            code.addNeededBehindFunction( name );
            code.section.statics.push(
                "ViewClass" + keySyntax( name ) + " = CODE_BEHIND" + keySyntax( name ) + ".bind(ViewClass);"
            );
        } );
    } catch ( ex ) {
        throw ex + "\n...in view.statics: " + JSON.stringify( statics );
    }
}
function buildViewStatics( def, code ) {
    try {
        let statics = def[ "view.statics" ];

        if ( typeof statics === 'undefined' ) return;
        if ( typeof statics === 'string' ) statics = [ statics ];
        else if ( !Array.isArray( statics ) ) {
            throw Error( "view.statics must be a string or an array of strings!" );
        }

        statics.forEach( function ( name ) {
            code.addNeededBehindFunction( name );
            code.section.statics.push(
                "ViewClass" + keySyntax( name ) + " = CODE_BEHIND" + keySyntax( name ) + ".bind(ViewClass);"
            );
        } );
    } catch ( ex ) {
        throw ex + "\n...in view.statics: " + JSON.stringify( statics );
    }
}
function buildViewStatics ( def , code ) { try { let statics = def [ "view.statics" ] ; if ( typeof statics === 'undefined' ) return ; if ( typeof statics === 'string' ) statics = [ statics ] ; else if ( ! Array . isArray ( statics ) ) { throw Error ( "view.statics must be a string or an array of strings!" ) ; } statics . forEach ( function ( name ) { code . addNeededBehindFunction ( name ) ; code . section . statics . push ( "ViewClass" + keySyntax ( name ) + " = CODE_BEHIND" + keySyntax ( name ) + ".bind(ViewClass);" ) ; } ) ; } catch ( ex ) { throw ex + "\n...in view.statics: " + JSON . stringify ( statics ) ; } }
Add static functions to the current class.

@example
view.statics: ["show", "check"]
view.statics: "show"
Add static functions to the current class .