Allow --template to take a URL argument.
This commit is contained in:
parent
e499769dc0
commit
07bce91f4f
2 changed files with 4 additions and 4 deletions
|
@ -645,10 +645,10 @@ General writer options
|
||||||
output. For `native` output, this option causes metadata to
|
output. For `native` output, this option causes metadata to
|
||||||
be included; otherwise, metadata is suppressed.
|
be included; otherwise, metadata is suppressed.
|
||||||
|
|
||||||
`--template=`*FILE*
|
`--template=`*FILE*|*URL*
|
||||||
|
|
||||||
: Use *FILE* as a custom template for the generated document. Implies
|
: Use the specified file as a custom template for the generated document.
|
||||||
`--standalone`. See [Templates], below, for a description
|
Implies `--standalone`. See [Templates], below, for a description
|
||||||
of template syntax. If no extension is specified, an extension
|
of template syntax. If no extension is specified, an extension
|
||||||
corresponding to the writer will be added, so that `--template=special`
|
corresponding to the writer will be added, so that `--template=special`
|
||||||
looks for `special.html` for HTML output. If the template is not
|
looks for `special.html` for HTML output. If the template is not
|
||||||
|
|
|
@ -381,7 +381,7 @@ convertWithOpts opts = do
|
||||||
"" -> tp <.> format
|
"" -> tp <.> format
|
||||||
_ -> tp
|
_ -> tp
|
||||||
Just . UTF8.toString <$>
|
Just . UTF8.toString <$>
|
||||||
(readFileStrict tp' `catchError`
|
((fst <$> fetchItem tp') `catchError`
|
||||||
(\e ->
|
(\e ->
|
||||||
case e of
|
case e of
|
||||||
PandocIOError _ e' |
|
PandocIOError _ e' |
|
||||||
|
|
Loading…
Add table
Reference in a new issue