var path = require('path');

var pathMap = module.exports = {};

var baseDir = path.join(__dirname, '../');

pathMap.assets  = path.join(baseDir, './assets');
pathMap.favicon = path.join(pathMap.assets, './favicon/favicon.ico');

pathMap.views    = path.join(baseDir, './views');
pathMap.partials = path.join(pathMap.views, './partials');

pathMap.locales = path.join(baseDir, './locales');


@@ -58,16 +58,45 @@
  = %7B%7D;%0A%0A
+// path to modules directory%0A
 var base
@@ -127,24 +127,25 @@
 e, '../');%0A%0A
+%0A
 pathMap.asse
@@ -150,35 +150,25 @@
 sets  = 
-path.join(baseDir, 
+basePath(
 './asset
@@ -194,34 +194,17 @@
 n = 
-path.join(pathMap.assets, 
+basePath(
 './f
@@ -222,16 +222,32 @@
 con.ico'
+, pathMap.assets
 );%0A%0Apath
@@ -261,35 +261,25 @@
 ws    = 
-path.join(baseDir, 
+basePath(
 './views
@@ -305,97 +305,418 @@
 s = 
-path.join(pathMap.views, './partials');%0A%0ApathMap.locales = path.join(baseDir, './locales'
+basePath('./partials', pathMap.views);%0A%0ApathMap.locales = basePath('./locales');%0A%0A%0A/**%0A * Return absolute location of given %60location%60 relative to %60base%60.%0A *%0A * If %60base%60 is ommited, use modules directory as default.%0A *%0A * @param  %7BString%7D location%0A * @param  %7BString%7D base %5Boptional%5D%0A * @return %7BString%7D%0A */%0A%0Afunction basePath(location, base) %7B%0A    base = base %7C%7C baseDir;%0A    return path.join(base, location
 );%0A
+%7D
 %0A

Add cleaner base path resolution to `pathMap`