aboutsummaryrefslogtreecommitdiffstats
path: root/src/asciideck.erl
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2016-10-31 17:49:49 +0200
committerLoïc Hoguin <[email protected]>2016-10-31 18:12:10 +0200
commite466d925f69eb145b6576be6a2b7603bb8d0f9b4 (patch)
treee2827a4fd01d470d70e358d972dd21640a163290 /src/asciideck.erl
parentb534d457c3813c4c2d905a04f6183e7317d66720 (diff)
downloadasciideck-e466d925f69eb145b6576be6a2b7603bb8d0f9b4.tar.gz
asciideck-e466d925f69eb145b6576be6a2b7603bb8d0f9b4.tar.bz2
asciideck-e466d925f69eb145b6576be6a2b7603bb8d0f9b4.zip
Add compress and outdir options to man translator
Diffstat (limited to 'src/asciideck.erl')
-rw-r--r--src/asciideck.erl6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/asciideck.erl b/src/asciideck.erl
index cc50a57..749ccec 100644
--- a/src/asciideck.erl
+++ b/src/asciideck.erl
@@ -20,6 +20,7 @@
-export([parse/2]).
-export([to_manpage/1]).
+-export([to_manpage/2]).
parse_file(Filename) ->
parse_file(Filename, #{}).
@@ -37,4 +38,7 @@ parse(Data, St) ->
parse(iolist_to_binary(Data), St).
to_manpage(AST) ->
- asciideck_to_manpage:translate(AST).
+ asciideck_to_manpage:translate(AST, #{}).
+
+to_manpage(AST, Opts) ->
+ asciideck_to_manpage:translate(AST, Opts).