'use strict';

module.exports = function locals(app, config){

    Object.keys(config.locals || {}).map((key)=>{
        app.locals[key] = config.locals[key];
    });

    app.locals.ENV = app.get('env');
};

@@ -8,16 +8,303 @@
 rict';%0A%0A
+/**%0A * Add local variables to express app.%0A * Variables are global and defined during%0A * configuration. %0A * %0A * Useful for things like keywords or things%0A * that do not change request by request.%0A * %0A * @param %7BExperss%7D app Express app%0A * @param %7BObject%7D config Configuration object%0A */%0A
 module.e
@@ -340,16 +340,17 @@
  config)
+ 
 %7B%0A%0A    O

add doc strings to locals middleware