public inbox archive for pandoc-discuss@googlegroups.com
 help / color / mirror / Atom feed
From: Albert Krewinkel <albert+pandoc-9EawChwDxG8hFhg+JK9F0w@public.gmane.org>
To: pandoc-discuss <pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
Subject: RFC: remove default template search for custom writers
Date: Thu, 13 Oct 2022 21:18:37 +0200	[thread overview]
Message-ID: <87bkqf344r.fsf@zeitkraut.de> (raw)

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


                 reply	other threads:[~2022-10-13 19:18 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87bkqf344r.fsf@zeitkraut.de \
    --to=albert+pandoc-9eawchwdxg8hfhg+jk9f0w@public.gmane.org \
    --cc=pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).