Skip to content

Commit

Permalink
Check if a local theme is present.
Browse files Browse the repository at this point in the history
  • Loading branch information
koddsson committed Mar 10, 2015
1 parent 5a4d62b commit 61ab653
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions lib/builder.js
Expand Up @@ -40,7 +40,12 @@ module.exports = function resumeBuilder(theme, cb) {
}
}

var render = require(process.cwd() + '/index').render;
var render;
try {
render = require(process.cwd() + '/index').render;
} catch(e) {
// The file does not exist.
}

if(render && typeof render === 'function') {
return cb(null, render(resumeJson));
Expand All @@ -50,4 +55,4 @@ module.exports = function resumeBuilder(theme, cb) {
}

});
};
};

0 comments on commit 61ab653

Please sign in to comment.