Permalink
Browse files

If no .tpl dir is found use the one in the package

  • Loading branch information...
1 parent babd71e commit db5af7e19f2789d5ed0c68073e3c10ad8530b6bf @pvorb committed Dec 24, 2011
Showing with 3 additions and 0 deletions.
  1. +3 −0 tpl.js
View
@@ -27,6 +27,9 @@ function apply(file, cb) {
// look for configuration directory
confdir(process.cwd(), 'tpl', function(err, dir) {
try {
+ if (err)
+ dir = path.resolve(__dirname, '.tpl');
+
// read configuration file
var json = fs.readFileSync(path.resolve(dir, 'conf.json'), 'utf8');
var conf = JSON.parse(json);

0 comments on commit db5af7e

Please sign in to comment.