From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/31542 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Albert Krewinkel Newsgroups: gmane.text.pandoc Subject: RFC: remove default template search for custom writers Date: Thu, 13 Oct 2022 21:18:37 +0200 Message-ID: <87bkqf344r.fsf@zeitkraut.de> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="22562"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBCZJF7XJTILRBW6SUGNAMGQE45LZBMA-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Thu Oct 13 21:39:11 2022 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-lj1-f184.google.com ([209.85.208.184]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1oj42x-0005Yd-SK for gtp-pandoc-discuss@m.gmane-mx.org; Thu, 13 Oct 2022 21:39:11 +0200 Original-Received: by mail-lj1-f184.google.com with SMTP id a7-20020a2e9807000000b0026fcce97229sf980876ljj.8 for ; Thu, 13 Oct 2022 12:39:11 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1665689951; cv=pass; d=google.com; s=arc-20160816; b=Bxy0jIIRMshGr/xd4vn1hbUjGSWkIsnv7e8sB6XlWW799k/AeccEsKk7rv1K820CMN EXc0Xe8l0v2nAjLVMZ84WI6CRI1JTTSS1H9tnsTYS4fi++GOD1EJUgmGYCIhOq16TWIW ucAc4FkEvkZ2USa0ERmcxMYePCgdyLPGQd3eRKVaaUWVEC5mKvxGPZ9n9ymctvV2lPS0 7CjNnGU/wvYSFiP+ZqjAjkpmhTzqR/7U6jzLFo/qjCD9KvMdkLT7yNP0B5q2SUMBWfz9 FQ/Agv9LIKaeLYggnoGOFw49rW7p78NBj/qbsTxLYDyL7qT9c8g1i+NHjQWJb27EbrEn 8BAA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to:mime-version:message-id :date:subject:to:from:sender:dkim-signature; bh=gMOujoh597Be9mQdvCOAHwRqi3Lz7b2fyXFbT0Hu/Sk=; b=UsT/lyrYKE8tz76R3fD1Fw7/zEzP1l0HtRuuU8YlWJ4N8mm70syhaP3mO51ysQ/BWS Y8s5LbATNKJzOWSG0UU08pBMUCiDKYFi45+JIBZvskUhRcSmtVv7NgUSGBWD0cwmQVrN Ioj/K5YnbRu8MO/CKyrC0xwjF5sg/5eWLP2Lx0PxXHnWrhZJuSpTSJqTEHX8rtfTZhiv 61LCAFC8u3wKTm6FWfT+8KUvBSmzuqxU9VVSm4ueBXdkbJ5gNMb0wPdUu6hHa8XUYt7x JIzZqM7kE+27JGpbs3oQ8xNZVmKswYyB7h8pO1ObtpATR2G/u/vZqgtaBy55QkfHMyB+ AfWw== ARC-Authentication-Results: i=2; gmr-mx.google.com; spf=pass (google.com: domain of albert+pandoc-9EawChwDxG8hFhg+JK9F0w@public.gmane.org designates 80.241.56.171 as permitted sender) smtp.mailfrom=albert+pandoc-9EawChwDxG8hFhg+JK9F0w@public.gmane.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20210112; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to :x-original-authentication-results:x-original-sender:mime-version :message-id:date:subject:to:from:sender:from:to:cc:subject:date :message-id:reply-to; bh=gMOujoh597Be9mQdvCOAHwRqi3Lz7b2fyXFbT0Hu/Sk=; b=ZYJ0CiHksj6HuOUk/aDte9NDnaO0M0g4ByphDJkOaVQ0Www4nYBLDsIcZQkJLMtBY9 wYX/Zg8RrBLFiXF60koFjr/c3x+krlVZvfHbe2BHjsCrQSHjCAkAhFKBwn9V2JcilOXS yhQwNhp5kSeaeasj314OTlZhFPrdw+rD9czoXHfnKmyADX9YQ2+ORhukBTveNDWTBU3D PXRU+MeJQY1c684WZRvaiFzjYASRh4IbYdfmBwUj7yvSfmq7rzFPQiSMCxgWvPTSnCuh JYRmyePtKthpjqdFdvx3XRmSL3kAJYIrXJxvBIwoyEU1h4kQN3bg0fHkQaAa1KvXk8AB 0Fvg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :x-spam-checked-in-group:list-id:mailing-list:precedence:reply-to :x-original-authentication-results:x-original-sender:mime-version :message-id:date:subject:to:from:x-gm-message-state:sender:from:to :cc:subject:date:message-id:reply-to; bh=gMOujoh597Be9mQdvCOAHwRqi3Lz7b2fyXFbT0Hu/Sk=; b=Qks6UVNtfh18P6LmjrNTL/Gw+tGV1Vcd1T5xgQlQSTySlS7igfpYMvPfpbJadt5/01 LLVczoTXpOPLTGvFN3x5Ga2O1Wjfs1OQM2TTLQVDvQC45GFD3fKMqsj6Hg+RuEEzK7a+ sgn9fFTAQPBaVHRXcfFDKRMBVh60PGxI+XrkXiPry7cAXW51hEecb2ALH8Ax3H91ikUU 58P7lIwgUeNzzbPZtWoZ+0+ruuOCStmdY1BhBnVKvmFfCG3zplCSsUh8mkbld1Fir4RK mYiY9EwGv6rlc9gA037VzPjCJUkDczF5UgdTm+6ruOZOv27FYfpRVDHUXt4BgMof2h1x 3 Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: ACrzQf0DVpgBo365me7GuDmKru4jp8tDtoDSdvAKcsZnX9Uc6wMyedvv N9ERHok28DEwK0aREoOGtHc= X-Google-Smtp-Source: AMsMyM4wc9cgMaB5YhJZ8F2bLr0i0fJgn/7AIDyqOVVEU1MjIPdWvHMBkGaMrK+8Y54CDxnZyx/xNw== X-Received: by 2002:a05:6512:1096:b0:4a2:f71:60ea with SMTP id j22-20020a056512109600b004a20f7160eamr497664lfg.232.1665689951205; Thu, 13 Oct 2022 12:39:11 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a05:6512:3590:b0:494:6c7d:cf65 with SMTP id m16-20020a056512359000b004946c7dcf65ls1795851lfr.2.-pod-prod-gmail; Thu, 13 Oct 2022 12:39:06 -0700 (PDT) X-Received: by 2002:a19:f00d:0:b0:4a2:7702:ae03 with SMTP id p13-20020a19f00d000000b004a27702ae03mr421835lfc.373.1665689946194; Thu, 13 Oct 2022 12:39:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665689946; cv=none; d=google.com; s=arc-20160816; b=zTZIeNNCTs1SNE9cUPJzgq29QyJrZHrluwhF50rvUrzUexwiU/ot/+B+yT3xFJ8VEW J/H6C81nC14HH4zrA5PrdDQYqdVBQv4iwlTz13PpfIfoZjuVzW9eeCvyzIonUGNKCUGz oaYP2duAreNkgwKJGXu2x6I2Jhx7/hXkLDuRdh+SCXW24DNid/PGqa1GzHSzDL2IiZHW hQLVNL+DqJEaZiapRPcNa9FFPioxdcpqXvH/CEmXn2g93PCMHZX9dNd+0Uf9kvZ0YqXX gLEGicKNcXvrbSNHW3qgP5bakSofWrDB92R4lbzYYEPcgoOZw925cihjVsUFmuEGd8FM ugpA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:message-id:date:subject:to:from; bh=5lNd3/RvqAhZD05/NvQxpP4Nxe8bcOStFqyYm/N14A8=; b=jMXN2Mto5Vud5J+QMu33psd4uTmHnKTcV1ppTLMHqd2Vi5f9TI15YdpGGZF9yF43TV mQj88jVER2VdLFML1sq/w3QxmlWwgh1DNxug+5spcfnihJvnx4sPraRN3i88Ep+6q7V1 LkZAoV/xt+7SycGw1so7Mqv7PBvLk6ZDfgJI6zjY+9Li9Avmh5k2INe9WYANrkB6mAYi 2puXqhL9e+UnSUtlWYNoEVERU+a/HiWpIlD+xhp7Cm1yJc+7CBHjJmBLTdTigI+Ilp3C WxOCQvX4V9L4RfNTKR+fGvhmVD82/3DUshUTSoXUokSclFnDU8gluIb7kf3NLVCQa5iA nUSA== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of albert+pandoc-9EawChwDxG8hFhg+JK9F0w@public.gmane.org designates 80.241.56.171 as permitted sender) smtp.mailfrom=albert+pandoc-9EawChwDxG8hFhg+JK9F0w@public.gmane.org Original-Received: from mout-p-201.mailbox.org (mout-p-201.mailbox.org. [80.241.56.171]) by gmr-mx.google.com with ESMTPS id r4-20020ac25f84000000b00492ea683e72si12626lfe.2.2022.10.13.12.39.06 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 13 Oct 2022 12:39:06 -0700 (PDT) Received-SPF: pass (google.com: domain of albert+pandoc-9EawChwDxG8hFhg+JK9F0w@public.gmane.org designates 80.241.56.171 as permitted sender) client-ip=80.241.56.171; Original-Received: from smtp2.mailbox.org (smtp2.mailbox.org [IPv6:2001:67c:2050:b231:465::2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-201.mailbox.org (Postfix) with ESMTPS id 4MpKZv2TRWz9sZ5 for ; Thu, 13 Oct 2022 21:39:03 +0200 (CEST) X-Rspamd-Queue-Id: 4MpKZv2TRWz9sZ5 X-Original-Sender: albert+pandoc-9EawChwDxG8hFhg+JK9F0w@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of albert+pandoc-9EawChwDxG8hFhg+JK9F0w@public.gmane.org designates 80.241.56.171 as permitted sender) smtp.mailfrom=albert+pandoc-9EawChwDxG8hFhg+JK9F0w@public.gmane.org Precedence: list Mailing-list: list pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org; contact pandoc-discuss+owners-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org List-ID: X-Google-Group-Id: 1007024079513 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , Xref: news.gmane.io gmane.text.pandoc:31542 Archived-At: 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