lib/middleware/jng.directives.js
function getClientDirectives(appName) {
    var directives = [];
    var me = this;

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

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

        directiveName = directiveName.substring(0, directiveName.length - 3).replace('.', '-');
        directives.push(directiveName);
    });

    return directives;
}
function getClientDirectives(appName) {
    var directives = [];
    var me = this;

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

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

        directiveName = directiveName.substring(0, directiveName.length - 3).replace('.', '-');
        directives.push(directiveName);
    });

    return directives;
}
function getClientDirectives ( appName ) { var directives = [ ] ; var me = this ; _ . each ( this . getAppFileNames ( appName , 'ng.directives' ) , function ( directiveName ) { // if not a JavaScript file, ignore it if ( ! me . pancakes . utils . isJavaScript ( directiveName ) ) { return ; } directiveName = directiveName . substring ( 0 , directiveName . length - 3 ) . replace ( '.' , '-' ) ; directives . push ( directiveName ) ; } ) ; return directives ; }
Just because they are client-side directives, doesn't mean we don't need to do anything server-side. For example,
if JNG_STRIP is true, we need to strip them. We do, however, need to make it so they don't actually do anything
server-side (noop function0

@param appName
Just because they are client - side directives doesn t mean we don t need to do anything server - side . For example if JNG_STRIP is true we need to strip them . We do however need to make it so they don t actually do anything server - side ( noop function0