public inbox archive for pandoc-discuss@googlegroups.com
 help / color / mirror / Atom feed
* RFC: remove default template search for custom writers
@ 2022-10-13 19:18 Albert Krewinkel
  0 siblings, 0 replies; only message in thread
From: Albert Krewinkel @ 2022-10-13 19:18 UTC (permalink / raw)
  To: pandoc-discuss

When pandoc is called with `-s`/`--standalone`, but without an explicit
template`, a template will be searched in the "templates" directory of
the data dir. The current method is to search for the template in file
`templates/default.FORMAT`, where FORMAT is the chosen output format.

We are discussing whether this feature can be removed when using a
custom output format, i.e., a custom writer. There are multiple issues
with this feature in its current form when used with custom writers, and
it might be easiest not to search for a default template at all.

There are considerations to replace the current behavior with a
[different mechanism], but existing custom writers would need to be
updated.

If you are using the default template search with custom writers and
believe that removing/replacing that feature would be a mistake, then
please let us know.


[different mechanism]: https://github.com/jgm/pandoc/pull/8372

-- 
Albert Krewinkel
GPG: 8eed e3e2 e8c5 6f18 81fe  e836 388d c0b2 1f63 1124


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-10-13 19:18 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-10-13 19:18 RFC: remove default template search for custom writers Albert Krewinkel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).