aboutsummaryrefslogtreecommitdiff
path: root/lib/writers/index.js
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2015-02-04 18:43:56 +0000
committerMichael Williamson <mike@zwobble.org>2015-02-04 18:43:56 +0000
commit21ab7c6d791e68e2c3e2884bc5c3ab2455f398d9 (patch)
treee52c9034e09e4977b3ca5b321c4507d259de07af /lib/writers/index.js
parentb2ccfa5cc2cd4d7f8f80f0555e2586387375a98e (diff)
Create separate writers module
Diffstat (limited to 'lib/writers/index.js')
-rw-r--r--lib/writers/index.js13
1 files changed, 13 insertions, 0 deletions
diff --git a/lib/writers/index.js b/lib/writers/index.js
index 8b13789..b34d28f 100644
--- a/lib/writers/index.js
+++ b/lib/writers/index.js
@@ -1 +1,14 @@
+var htmlWriter = require("./html-writer");
+var markdownWriter = require("./markdown-writer");
+exports.writer = writer;
+
+
+function writer(options) {
+ options = options || {};
+ if (options.markdown) {
+ return markdownWriter.writer();
+ } else {
+ return htmlWriter.writer(options);
+ }
+}