From aed1cba48a2b48e48e80128f7c4540e193eb5977 Mon Sep 17 00:00:00 2001 From: Takuto Wada Date: Sat, 19 Apr 2014 20:09:13 +0900 Subject: [PATCH] Use default output path if output metadata is not given. This feature is lost in jdan/cleaver@0b8ff3d0fdea804e597d4a36e31b7f9d908290a7 --- bin/cleaver | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/cleaver b/bin/cleaver index f7efaba..f344e4e 100755 --- a/bin/cleaver +++ b/bin/cleaver @@ -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) {