lib/middleware/jng.directives.js
function getBehavioralDirectives(appName) {
    var directives = {};
    var me = this;

    _.each(this.getAppFileNames(appName, 'jng.directives'), function (directiveName) {

        // if not a JavaScript file, ignore it
        if (!me.pancakes.utils.isJavaScript(directiveName)) { return; }

        // get the directive and load it into the directive map
        var directivePath = 'app/' + appName + '/jng.directives/' + directiveName;
        var directive = me.pancakes.cook(directivePath, null);
        directiveName = directiveName.substring(0, directiveName.length - 3).replace('.', '-');
        directives[directiveName] = directive;
    });

    return directives;
}
function getBehavioralDirectives(appName) {
    var directives = {};
    var me = this;

    _.each(this.getAppFileNames(appName, 'jng.directives'), function (directiveName) {

        // if not a JavaScript file, ignore it
        if (!me.pancakes.utils.isJavaScript(directiveName)) { return; }

        // get the directive and load it into the directive map
        var directivePath = 'app/' + appName + '/jng.directives/' + directiveName;
        var directive = me.pancakes.cook(directivePath, null);
        directiveName = directiveName.substring(0, directiveName.length - 3).replace('.', '-');
        directives[directiveName] = directive;
    });

    return directives;
}
function getBehavioralDirectives ( appName ) { var directives = { } ; var me = this ; _ . each ( this . getAppFileNames ( appName , 'jng.directives' ) , function ( directiveName ) { // if not a JavaScript file, ignore it if ( ! me . pancakes . utils . isJavaScript ( directiveName ) ) { return ; } // get the directive and load it into the directive map var directivePath = 'app/' + appName + '/jng.directives/' + directiveName ; var directive = me . pancakes . cook ( directivePath , null ) ; directiveName = directiveName . substring ( 0 , directiveName . length - 3 ) . replace ( '.' , '-' ) ; directives [ directiveName ] = directive ; } ) ; return directives ; }
Add behavior directives from the jng.directives folder.
@param appName
Add behavior directives from the jng . directives folder .