Skip to content

Commit

Permalink
Merge pull request jdan#83 from twada/default-filename
Browse files Browse the repository at this point in the history
Use default path if output metadata is not given.
  • Loading branch information
jdan committed Apr 19, 2014
2 parents 49c6e12 + aed1cba commit 94364f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/cleaver
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ function createAndSave(file) {

promise
.then(function (product) {
var outputFile = presentation.metadata.output;
var outputFile = presentation.metadata.output || path.basename(file, '.md') + '-cleaver.html';
fs.writeFile(outputFile, product);
})
.fail(function (err) {
Expand Down

0 comments on commit 94364f8

Please sign in to comment.