From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/33024 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: John MacFarlane Newsgroups: gmane.text.pandoc Subject: Re: Setting a template based on YAML metadata blocks Date: Thu, 3 Aug 2023 16:06:13 -0600 Message-ID: References: <6CAC3AED-3628-4F25-BBB9-D3CEA9CECA36@gmail.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3696.120.41.1.3\)) Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="19529"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-X-From: pandoc-discuss+bncBDW7ZIEHTIIBBVMDWKTAMGQED3KIYYI-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Fri Aug 04 06:43:05 2023 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-qv1-f64.google.com ([209.85.219.64]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1qRmeX-0004tv-9F for gtp-pandoc-discuss@m.gmane-mx.org; Fri, 04 Aug 2023 06:43:05 +0200 Original-Received: by mail-qv1-f64.google.com with SMTP id 6a1803df08f44-63d41d1542dsf19491846d6.0 for ; Thu, 03 Aug 2023 21:43:05 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1691124184; cv=pass; d=google.com; s=arc-20160816; b=KSmaRttO3TeVneAcCHEeqoeko2syCAKqGmwAaSpZxTIiIPk577KJceTdJmCyu8HoTc mx2HfsjUBLIIr0gOBqzIEGo8QbucPJWtFFduhoJ4XD87jWDn4u4voY02qmfWhIOx3Ko/ Xao8xBedSBxDODbSJHlsB6CF9fMn4txIdE19K7UB/8h1dWPbn2HDPLzqNuA2l/EiirLX bCZthRAAJJfXhXfAB95qbWWRM9oDDiG3RPcHBXKZE10O2voQAGpckYJO6RRu2jVT/T3/ uSEVw6smEgTekq1NcrzHJVfIWYt9ffeehmPuQYEypPMcNivf/lN1FYoXl/ysi6H4sPXV Y1dw== 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:message-id:in-reply-to:to :references:date:subject:mime-version:from:sender:dkim-signature :dkim-signature; bh=qSjZp+eyg4Gk4TByPE7KLpvo1irDgqruEGkv/5lt1/c=; fh=A7KGSvm30SBY9b2v+N53j+lkchMNZtkZbRzF4WqsV70=; b=qAltewiMuuEKGgEuzfpU5DMKlcPy6ylx56NWb9taeMlHreRxoEWvCjQAjIaWrkZJRb MfTlp6NZd+JK4ZEZYb7YpcOeyRzitlyjEsvcktuJTaqPS03nI8CFCHMDBr9Ch3qlcfc/ OFJ08YrVmFIfdMRkkEDmGry0wxRbPdPUgIkYZciap2IMWEM0rPZqgkofbufGIfbzhl8C Wdm0Zd4SpkW6KPQL3WwU/F83ASEWrfvOHvaH/5QXUARVYZOazk/rBRixduegQ1A1hjbz 4YFXk2coUp8H+aaAO3+2Nh5Cztv7dy5lZu4Tt3DPhSkZ/BRxKMwvn+CbH5gv2K3j+xSc T+uw== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=ebX3PcNm; spf=pass (google.com: domain of fiddlosopher-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::234 as permitted sender) smtp.mailfrom=fiddlosopher-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20221208; t=1691124184; x=1691728984; 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:message-id :in-reply-to:to:references:date:subject:mime-version:from:sender :from:to:cc:subject:date:message-id:reply-to; bh=qSjZp+eyg4Gk4TByPE7KLpvo1irDgqruEGkv/5lt1/c=; b=c4Erg6hKtpctS90tEYZ17kZnaeiVbFoE2Imuwg83MuNC5gmBrECVJVLGEjCQm3TRpI Kud2+0Q3vKqGCUXIORJH5A2wSwBV4+a4ndn7ZFLXASn8x6kLtSOzNjsPcRV1/Qae4LP4 Gb6gNaKXp/sNwdaJf9Ih8Yf83sFpxdAjRVljQT/JKgQB0IefqMgmJuKYiyZ/TlGCk2NA uUEsh2ICYgem/fHSoRi8L35XIUPhSDGGRRh6ZHcJneSgVsUi0aeLLgTJhWt5XeQ1t0kn FkVkkQQve4iLfNqX73KVGOU4poFThZIfEmZKwLvZBt6xKFXUCkuoQKIboSesiu/vW6/3 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1691124184; x=1691728984; 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:message-id :in-reply-to:to:references:date:subject:mime-version:from:from:to:cc :subject:date:message-id:reply-to; bh=qSjZp+eyg4Gk4TByPE7KLpvo1irDgqruEGkv/5lt1/c=; b=o/iIhZHGPdyQ9qoVDzHcIIETjyaGfrMOkEokMl4XyrI6/xXMcubQrGGmDogGnbF+1G AjZFZk0DCv54Qd7YGI21L1e2afX7+s/cGMuVTix4tdUVCD0eMSBTqSosVu/0EGadZJep Iuvd5ozbpFjLhAqllShhLhjmpXUqIfYY8b1zhzJpKiztYl73YMsaDkN7c5lBfI1o63iU wCZWHWBNqrJYkDM/vrWO6LLt7twjhC9jpwKVH2gUAa0c11O3bbaw6VRIADF0VNXSHNK8 1bHNrWatbOVLyHAHScuTz2C7TwjXAP1cav4cvPULQ9F6kZPeho9VDsrqs4IbpMmylrLQ u+fQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691124184; x=1691728984; 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:message-id :in-reply-to:to:references:date:subject:mime-version:from :x-beenthere:x-gm-message-state:sender:from:to:cc:subject:date :message-id:reply-to; bh=qSjZp+eyg4Gk4TByPE7KLpvo1irDgqruEGkv/5lt1/c=; b=Ab2keRMUIxPFaJ3EBQ+27SM4gXtLT+QfAbvGaI0JHR4niHFcH3RNkaU3MkntVZTavo utQsklFS9bWmhcCD87XH7kIBTLACRnJlSQhBgmuw2h6LymQylvLoVfpzUHRk9IID4v26 3JfI4gKm64Axb6SjqNiuZQH+abdz5iWq7sLlqHTLexVZnPyh4zzlletE4DkKoDyYGpbn fP/ZuWfHSik5qrevYnAGOUA8WW6RqbeXGyREUsVlOts6yKbCMPC7/lYPXcjlhxVL3T2d 7ZW5H1 Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOJu0YziE+jRdWv9T1tTtGVy7Iozuj1bT29awlhHH3O9xRYeoI1M8YTX DVrDDV8LdT2X+gOFwU2hpvU= X-Google-Smtp-Source: AGHT+IEVJJvmFz4jq3Ms9/Yr3cO0BlULtJW8Y++O8THQhtaBaBcp1aXdq9i5SS+Oj70iAgu8IfrC+w== X-Received: by 2002:a0c:e0c2:0:b0:62f:d00c:7f41 with SMTP id x2-20020a0ce0c2000000b0062fd00c7f41mr707476qvk.26.1691124184166; Thu, 03 Aug 2023 21:43:04 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a0c:cb90:0:b0:63d:6bd4:b4da with SMTP id p16-20020a0ccb90000000b0063d6bd4b4dals1428221qvk.1.-pod-prod-09-us; Thu, 03 Aug 2023 21:43:00 -0700 (PDT) X-Received: by 2002:a0c:aad1:0:b0:634:87c8:6a3f with SMTP id g17-20020a0caad1000000b0063487c86a3fmr531931qvb.46.1691124180775; Thu, 03 Aug 2023 21:43:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691124180; cv=none; d=google.com; s=arc-20160816; b=cI7pXgn8tR24GD2qYTZyxCgQ1WWHrA522BbfB2RXRw+qP6CfgT0+Y7eGGZFKrWB7WR n7OHF1szm85cLwb3Uqtarp0aUNImQGWi/3k+T9cumv33FibH1d7Y8cLxOr+aJJxijpBJ BW6+dcAUkv/jsUn9gdw84U3M3BybJlbGvQO7L3V0k1yhcUMXOCQ/L/057xOxWQqaByYf 7uj5sdrqIf3/HExPYCIB5vV96Jxmzk+iiVkz2EmAx1OKL9mH7PUdV6azQCKVUohTJQJs vL//Gq3IEHbak3oczEeyBD93xgmVC3LCrk5TJCsikqdRZbi0RFv0ogAOHqW4tJuLcxEv jILw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=message-id:in-reply-to:to:references:date:subject:mime-version :content-transfer-encoding:from:dkim-signature; bh=2dBWRqk8UhgJDLvOI/mFDdagix4pHbKGMznF7izpJjQ=; fh=A7KGSvm30SBY9b2v+N53j+lkchMNZtkZbRzF4WqsV70=; b=qvDPHoVPHcfHw3nw+27H6xWD7qEVPiMN86My/2GEilvK4cA1/SIt0b/rOMnQ9eKcGn HxwzFuTueyAlLc908cVwm1mjsdp0RdCBCqmHxUSlzBV2yhn+NtRdCb62jmE2h/TfXnPG /sKJ7CM5t8avscJ7mPdirffX+g/wSY3PAucUXlBY7pko/RyMvfQupi2jnghg8i7rkrHO WBNwasv0LgDdxAhwaXrCWGFOCTLv6f89NFxcK7wCIyu4f6eVvh9uuS/gUA6w4Gfwa1lW bTFQaQWsfwV4ftGrLJJA8Bn76/8Rwoy+9dJ6PJ9sW1hs7RZKa4RpOOnpIBiflQ1pey1/ XX5w== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=ebX3PcNm; spf=pass (google.com: domain of fiddlosopher-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::234 as permitted sender) smtp.mailfrom=fiddlosopher-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Original-Received: from mail-oi1-x234.google.com (mail-oi1-x234.google.com. [2607:f8b0:4864:20::234]) by gmr-mx.google.com with ESMTPS id ej6-20020ad45a46000000b006260dab0171si158442qvb.3.2023.08.03.21.43.00 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 03 Aug 2023 21:43:00 -0700 (PDT) Received-SPF: pass (google.com: domain of fiddlosopher-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::234 as permitted sender) client-ip=2607:f8b0:4864:20::234; Original-Received: by mail-oi1-x234.google.com with SMTP id 5614622812f47-3a5ac84718dso1373404b6e.0 for ; Thu, 03 Aug 2023 21:43:00 -0700 (PDT) X-Received: by 2002:a05:6808:188f:b0:3a7:78f3:764b with SMTP id bi15-20020a056808188f00b003a778f3764bmr1028589oib.40.1691124179898; Thu, 03 Aug 2023 21:42:59 -0700 (PDT) Original-Received: from smtpclient.apple ([2601:644:4701:23f0:909:49b4:44dd:3c4c]) by smtp.gmail.com with ESMTPSA id t7-20020aa79387000000b0066ebaeb149dsm638689pfe.88.2023.08.03.21.42.56 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 03 Aug 2023 21:42:56 -0700 (PDT) In-Reply-To: X-Mailer: Apple Mail (2.3696.120.41.1.3) X-Original-Sender: fiddlosopher-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=ebX3PcNm; spf=pass (google.com: domain of fiddlosopher-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::234 as permitted sender) smtp.mailfrom=fiddlosopher-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com 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:33024 Archived-At: >> html4 and html5 are separate output formats (but `html` defaults to `html5`). That's why. The templates are a bit different. > > Interesting, the behavior I'm seeing might be a bug then. Only > `default.html5` works as a default HTML template, placing > `default.html` in `data-dir/templates/` does not override anything. > Then also only files ending in `.html`, not `.html5`, seem to be > referenceable without the extension with the template flag (ex. --to > html --template "funky" only works if a `funky.html` exists, not > `funky.html5`). That's expected behavior. The alias html = html5 only applies to specifying values for `--to` or `--from`.