git.iko.soy/typeable/pandoc
on master help sign in
Allow --template to take a URL argument.
commit07bce91f4f1614967dd6f3698238d51f5290aae7 authorJohn MacFarlane <jgm@berkeley.edu> dateTue 12 Jun 2018, 10:30 (8 years ago) parente499769
2 files changed+4−4
MANUAL.txt+3−3 src/Text/Pandoc/App.hs+1−1
MANUAL.txt+3−3
@@ -645,10 +645,10 @@ General writer options
645645 output. For `native` output, this option causes metadata to
646646 be included; otherwise, metadata is suppressed.
647647
648−`--template=`*FILE*
648+`--template=`*FILE*|*URL*
649649
650−: Use *FILE* as a custom template for the generated document. Implies
651− `--standalone`. See [Templates], below, for a description
650+: Use the specified file as a custom template for the generated document.
651+ Implies `--standalone`. See [Templates], below, for a description
652652 of template syntax. If no extension is specified, an extension
653653 corresponding to the writer will be added, so that `--template=special`
654654 looks for `special.html` for HTML output. If the template is not
src/Text/Pandoc/App.hs+1−1
@@ -381,7 +381,7 @@ convertWithOpts opts = do
381381 "" -> tp <.> format
382382 _ -> tp
383383 Just . UTF8.toString <$>
384− (readFileStrict tp' `catchError`
384+ ((fst <$> fetchItem tp') `catchError`
385385 (\e ->
386386 case e of
387387 PandocIOError _ e' |