Comparing version 0.1.9 to 0.1.10
var Advanced = require('advanced'), | ||
Utils = Advanced.Utils, | ||
swig = require('swig'), | ||
@@ -6,3 +7,3 @@ Path = require('path'); | ||
// Set root path. In order to start app in any path. | ||
Advanced.Utils.c('root', __dirname); | ||
Utils.c('root', __dirname); | ||
@@ -19,4 +20,4 @@ var app = Advanced(function(app) { | ||
app.listen(Advanced.Utils.c('port'), function() { | ||
console.log('App is listening on the port ' + Advanced.Utils.c('port')); | ||
app.listen(Utils.c('port'), function() { | ||
console.log('App is listening on the port ' + Utils.c('port')); | ||
}); |
@@ -54,2 +54,3 @@ var Express = require('express'), | ||
Utils.fs.readdirSync(configPath).map(function(file) { | ||
if (file.charAt(0) === '.') return; | ||
var config = require(Path.join(configPath, file)); | ||
@@ -56,0 +57,0 @@ Utils.c(config); |
@@ -33,4 +33,4 @@ var Express = require('express'), | ||
group: function(path, fn) { | ||
// first argument is path | ||
// last argument is router | ||
// the first argument is path | ||
// the last argument is router | ||
var middlewares = slice.call(arguments, 1), | ||
@@ -37,0 +37,0 @@ routerFn = middlewares.pop(); |
{ | ||
"name": "advanced", | ||
"version": "0.1.9", | ||
"version": "0.1.10", | ||
"description": "A simple MVC framework based on Express", | ||
@@ -5,0 +5,0 @@ "main": "./lib/index.js", |
@@ -98,3 +98,3 @@ # Advanced | ||
For example. Assume that the request path is `/test/api`. If there is a json file which path is `/mock/test/api.json`, the json data will be sent by reading the file. | ||
For example. Assume that the request path is `/test/api`. If there is a json file whose path is `/mock/test/api.json`, the json data will be sent by reading the file. | ||
@@ -101,0 +101,0 @@ # Debug template data |
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
21934
565