locomotive
Advanced tools
Comparing version 0.3.1 to 0.3.2
@@ -136,2 +136,3 @@ /** | ||
, ' this.use(express.bodyParser());' | ||
, ' this.use(express.methodOverride());' | ||
, ' this.use(this.router);' | ||
@@ -138,0 +139,0 @@ , '}' |
@@ -308,2 +308,5 @@ /** | ||
var self = this; | ||
this.__defineGetter__('app', function() { | ||
return self.__app; | ||
}); | ||
this.__defineGetter__('req', function() { | ||
@@ -373,3 +376,3 @@ return self.__req; | ||
for (var key in this) { | ||
if (this.hasOwnProperty(key) && (typeof this[key] == 'function')) { | ||
if (this.hasOwnProperty(key) && (typeof this[key] == 'function') && key.charAt(0) !== '_') { | ||
actions.push(key); | ||
@@ -376,0 +379,0 @@ } |
@@ -72,3 +72,3 @@ /** | ||
if (req.headers && req.headers['host']) { | ||
options.protocol = options.protocol || 'http'; | ||
options.protocol = options.protocol || req.protocol || 'http'; | ||
options.host = options.host || req.headers['host']; | ||
@@ -75,0 +75,0 @@ } |
@@ -242,4 +242,5 @@ /** | ||
// to be used interchangably with Express. | ||
utils.forward(this, app, [ 'get', 'set', 'enabled', 'disabled', 'enable', 'disable', | ||
utils.forward(this, app, [ 'configure', 'get', 'set', 'enabled', 'disabled', 'enable', 'disable', | ||
'use', 'engine', 'locals' ]); | ||
this.express = app; | ||
this.router = app.router; | ||
@@ -349,3 +350,3 @@ this.mime = express.mime; | ||
// Boot the application by configuriong the environment, invoking | ||
// Boot the application by configuring the environment, invoking | ||
// initializers, loading controllers, and drawing routes. | ||
@@ -352,0 +353,0 @@ async.series([ |
{ | ||
"name": "locomotive", | ||
"version": "0.3.1", | ||
"version": "0.3.2", | ||
"description": "Powerful MVC web framework for Node.js.", | ||
@@ -5,0 +5,0 @@ "author": { "name": "Jared Hanson", "email": "jaredhanson@gmail.com", "url": "http://www.jaredhanson.net/" }, |
No README
QualityPackage does not have a README. This may indicate a failed publish or a low quality package.
Found 1 instance in 1 package
86936
26
2646
1
88