Comparing version 1.1.5 to 1.1.6
@@ -14,5 +14,5 @@ // simplistic example application for nodulejs | ||
debug = function(msg) { | ||
if (mergedConfig.debugToConsole) console.log('nodule demoApp: ' + msg); | ||
}; | ||
debug = (appConfig.customDebug) | ||
? appConfig.customDebug('demoApp') | ||
: function(msg) { if (mergedConfig.debugToConsole) console.log('nodule demoApp: ' + msg); }; | ||
}; | ||
@@ -19,0 +19,0 @@ |
@@ -11,5 +11,5 @@ // basic page example (serving multiple routes) | ||
// example of specifying a nodule property at request time | ||
this.templateName = (req.path.indexOf('special') > -1) ? 'specialHomePage.jade' : 'homePage.jade'; | ||
this.templateName = (req.path.indexOf('special') > -1) ? 'altHomePage.jade' : 'homePage.jade'; | ||
} | ||
}; | ||
}; |
{ | ||
"name": "nodulejs", | ||
"version": "1.1.5", | ||
"version": "1.1.6", | ||
"description": "Utility for discovering and initializing node/express 'nodules'", | ||
@@ -5,0 +5,0 @@ "main": "nodule.js", |
@@ -38,3 +38,3 @@ var assert = require('assert'); | ||
.end(function(err, res){ | ||
assert(res.text.indexOf('<h1>SPECIAL HOME PAGE') > -1, 'res.text='+res.text); | ||
assert(res.text.indexOf('<h1>ALTERNATE HOME PAGE') > -1, 'res.text='+res.text); | ||
done(); | ||
@@ -41,0 +41,0 @@ }); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
29493