From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/28370 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?UTF-8?Q?Cl=C3=A9ment_Aubert?= Newsgroups: gmane.text.pandoc Subject: Re: Structure of the outputfile variable in template Date: Sun, 16 May 2021 20:00:38 -0400 Message-ID: References: Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="0000000000002ec3e305c27b4ab7" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="17986"; mail-complaints-to="usenet@ciao.gmane.io" Cc: pandoc-discuss To: John MacFarlane Original-X-From: pandoc-discuss+bncBCM37TODUUORBQXEQ2CQMGQET2LVC6A-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mon May 17 02:01:09 2021 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-oo1-f56.google.com ([209.85.161.56]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1liQh2-0004T9-BA for gtp-pandoc-discuss@m.gmane-mx.org; Mon, 17 May 2021 02:01:08 +0200 Original-Received: by mail-oo1-f56.google.com with SMTP id c25-20020a4ad7990000b029020e67cc1879sf1716724oou.18 for ; Sun, 16 May 2021 17:01:08 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1621209667; cv=pass; d=google.com; s=arc-20160816; b=XoBUPiS6uHTwqwCnvWLKPgoO+6LmYfv8j8gRX3nEYpUv4gsWIKwfq397wkHqfyDznK 3e27lCntZ5yCdENd+K6y6YZkLBxNmITD3yK5zBaYO906455Q5hwK5hbIWdV4lAbHJJxW f4zr6MoxdM0FbTA4GX1Pi74vPmsC67uysNmoWZA9CacKUEJYrTH3gMQm3J9QIuQWvPHz xVyeAEoonCOLN5RmPX65ccTah7Rp6EXIg9FU3K3xQKPRK/kYyZtGMonx5wsIysuO4UuQ dBxVpAT9ouBoKrJgHWCBQM9uywdHl3wEwPk8HGb526N3pcmwduiiXq5kqw3BMq006E4O KItA== 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:cc:to:subject:message-id :date:from:in-reply-to:references:mime-version:sender:dkim-signature :dkim-signature; bh=xu5lZTqPM4/BqfqQifhFpDl+kD8Eflgzv/V7y/x+Oic=; b=s8xYLHdf1ksVHwIC1D0P8RcR9yP4jPpSBDREW/W6MMoRmEWVPColisuhNRFuni+fsG i2eH+UXC1/uT9IopEsPTACB8bfksR+jAAiX69Mr8jghXh72IkoMnDxHNG8TqfEC09j2V 6Qr2cOm1SoAJam+1mjRaoNSSYnKgFSl0vDQS2cKdhqVtGELSEXZVR4ZZ/uGf5ghLD+PF mp0K8S3mo6J2Xr6uT7/MOCHVGwFSp+tuFeEoCd0OMgLoaVF0JXIVVAcHW4jaI0z2T4XC JvKAsNMIs17MFDJwysbcvnQlacMWDEqxCcMqJiAGbrJhIARJPt/Vl2UaLCG4sUF2HWx0 OU/A== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=DoSoqDxV; spf=pass (google.com: domain of aubert.clement-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::62c as permitted sender) smtp.mailfrom=aubert.clement-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=20161025; h=sender:mime-version:references:in-reply-to:from:date:message-id :subject:to:cc:x-original-sender:x-original-authentication-results :reply-to:precedence:mailing-list:list-id:list-post:list-help :list-archive:list-subscribe:list-unsubscribe; bh=xu5lZTqPM4/BqfqQifhFpDl+kD8Eflgzv/V7y/x+Oic=; b=h40m9aRKJTgwsxuzc4OB+hJf2QpNRaF5KkSoI1cNF7Tt1rz8qfj+pVuX9y6APlgIbe nJ6ryozMWnEuYDqTLSSnQ9/LLLxRYNv1WYMIiTmXBbhaN+hN0ldGlEtAeN/YB9i0q9zM fJWehAyxQzqJScaIm/5qJBf1+NFBWnNXAC56ZMPCWX9MC5O6atJuFvcBK2PHvDd7JBcO lGGljhLrBibL+wej0cxtXkgowGTAFSeSMJvPMaC9M3CbI8M9364q/4lZIR8a5WkQBuhc /Jvn8AR0VlHxMbPaEsGfvUVKE4zK0dx98fZyP4lmDXxd+NSAeXbkKrrW3SIvELoAD9QN RTWA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:x-original-sender:x-original-authentication-results:reply-to :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=xu5lZTqPM4/BqfqQifhFpDl+kD8Eflgzv/V7y/x+Oic=; b=T5bfCnoSTBGpH8u2/kdY9QtRE+wzdXR49fase7taRPUdzPHFEiQdJqTUW34SeQSRpn 2AxaVJ0hx7XhYnup4RWFHB9/CoFvXuDUtlFVOGWTbWHWCvbnr3aa3V9A8/0idCdTNY89 +ucbBQ68T0mHl/UEllzacBBce4hn+RvdE9Cj6HlbP+HN/NZXJsqOqThmUa0WvYHG1cb0 Fv5+nRk+iZ5CYKlhuZEaenIX/QDXpEZGqvThPk5ewB/+LaoSXd2NJOzKBErkj/xl9XHb gzD97/wT9fDVjnxz0ZMWmszGre48icGUQlRRLlvI55xxBbmowR7JMGZOF4q7Sl1ouD0u 1uag== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=sender:x-gm-message-state:mime-version:references:in-reply-to:from :date:message-id:subject:to:cc:x-original-sender :x-original-authentication-results:reply-to:precedence:mailing-list :list-id:x-spam-checked-in-group:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=xu5lZTqPM4/BqfqQifhFpDl+kD8Eflgzv/V7y/x+Oic=; b=jXh0vOOot1b3356eOqKUC2+NNsWQ64Z60HAvmw9gaIit3BbVEf85PPAjCR1CdVnhGg KMZWBqoDrLk+JFRIuzR62CFeXwdiSiIzOQdhE9Vo4Qi3NCXgCBLCwZt62cwhMiFBGO9f 0/tPLddFun+k1Vc7zHCS1PnSIo/4vo5KECXnkJKYSUtyONsZjqnV3zA582yyWEVVrrno 1Wy9cw+z4dpP8JHLM0IiFiFyiOfVp0EsRbPYT/wUdSDcP76MeseuVrPmf+5y0R6+tXlc M/8RyzdaqGHcMW4RVeHhyiPrL81glcCt6pH6C5yWe4ukMJXbS4tNpcWAVH5EEXImuyrd l+0Q== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOAM5328Qwel/H1hRwpOjBT33mJz6oEaSjaqKgM3lPSu6f74JAvENOGm YhrMd6TUnRoG5OlqEhrUJSE= X-Google-Smtp-Source: ABdhPJyCdwcQiKjZaD/gg4ytKkx3O/Ha4+DzOimxpBmlag0ocSSF/djkWs44VJ67PK0zflkkgwXx/A== X-Received: by 2002:a05:6830:1591:: with SMTP id i17mr25904356otr.181.1621209667285; Sun, 16 May 2021 17:01:07 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a9d:7858:: with SMTP id c24ls4176741otm.6.gmail; Sun, 16 May 2021 17:01:05 -0700 (PDT) X-Received: by 2002:a9d:d0e:: with SMTP id 14mr48961851oti.12.1621209665735; Sun, 16 May 2021 17:01:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621209665; cv=none; d=google.com; s=arc-20160816; b=B47Bp+TlfmhySQLqQwrOooTqg5m12kXad6isNgZYGdPfsqtA+oRXPPYdDrLCcbSrFw pegrfsA8UfQegHUhI7pB1BUDiJj2s+ryfTZIo3k2qGsVaJwJX48sN1I47UELel7ukSu2 1Qq7RRQpHJhLLIzJTItNiztFxcIENPeq9kK01d88tuq+GeRn5X88AXKo95dMt0aE3Tnp hf0OxlecarWRt4GRjXJMsxq1/s1CRBeIaU5PQj3cWB0F45ZwKoD/fihg2HEWZNNme2jh RUzhkSp74pdwdY7MMkdp9OhGzOqEDPHNRnkDelOumewD3QdDDiBSQYGXvSgpebQ85+v8 WvcA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:dkim-signature; bh=JEZKausA7+RChV3YuIXwRBdDoXge1TSBfYCTPk1wFhc=; b=a7H5uSW2D1XhkTEFoScMK9lPeRU9cpAPjxQrIOZx59Dmwg+jnrW9eexhojrV3QpsDv mWmeRed+DOj/9UIcpkG7pasfbJ5grCIVk/Dvo0CcLAWRDjCjOx5NfzLURW0w/zqR1vPY tikAZyvxry5lFQOOUSv2gk44729Q8mpVrfjIwDB35fUpw0atr0RrTMWJpXm0Lr8u4T+X ajYrVeFR1PZNW2bJasGqVdEzr1ahyW8uqHN/PXRBgC1IKcRpMptCENJtn6HOf5JgAcWw visboCm7HcOkvCU+VrIQiPRxfjH6fWn9s8lNhZG7Bdt7pJTJpL1X4Ukt8JlAn807bcwP Vs+g== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=DoSoqDxV; spf=pass (google.com: domain of aubert.clement-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::62c as permitted sender) smtp.mailfrom=aubert.clement-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Original-Received: from mail-pl1-x62c.google.com (mail-pl1-x62c.google.com. [2607:f8b0:4864:20::62c]) by gmr-mx.google.com with ESMTPS id k4si1240178oot.1.2021.05.16.17.01.05 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 16 May 2021 17:01:05 -0700 (PDT) Received-SPF: pass (google.com: domain of aubert.clement-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::62c as permitted sender) client-ip=2607:f8b0:4864:20::62c; Original-Received: by mail-pl1-x62c.google.com with SMTP id h20so2171137plr.4 for ; Sun, 16 May 2021 17:01:05 -0700 (PDT) X-Received: by 2002:a17:90a:886:: with SMTP id v6mr66267324pjc.174.1621209664896; Sun, 16 May 2021 17:01:04 -0700 (PDT) In-Reply-To: X-Original-Sender: aubert.clement-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=DoSoqDxV; spf=pass (google.com: domain of aubert.clement-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::62c as permitted sender) smtp.mailfrom=aubert.clement-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:28370 Archived-At: --0000000000002ec3e305c27b4ab7 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Ok thanks. Le sam. 15 mai 2021 =C3=A0 19:54, John MacFarlane a =C3= =A9crit : > > At this time, no, it's just a string. > > Cl=C3=A9ment Aubert writes: > > > Hi, > > > > If I'm not mistaken, since > > > https://github.com/jgm/pandoc/commit/699d289cc5913c3cb0ec7b1b3d7ae767cbe5= 5339 > > we can access the `sourcefile` and `outputfile`variables from the > templates. > > > > Do those variables have any structure? > > Currently the `inputfile` and `outputfile` would contain e.g. > > `docs/about.md` > > and > > `docs/about.html`, > > > > Is there an way to extract the file name (about), the path (docs/), th= e > > extension (.md or .html), or a combination of those? > > > > I feel that this variables are not arrays and could not find my answer > in > > https://pandoc.org/MANUAL.html#templates > > > > Thanks! > > Cl=C3=A9ment. > > > > -- > > You received this message because you are subscribed to the Google > Groups "pandoc-discuss" group. > > To unsubscribe from this group and stop receiving emails from it, send > an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > > To view this discussion on the web visit > https://groups.google.com/d/msgid/pandoc-discuss/e266f9ed-a1df-4469-a773-= 127cdf488845n%40googlegroups.com > . > --=20 You received this message because you are subscribed to the Google Groups "= pandoc-discuss" group. To unsubscribe from this group and stop receiving emails from it, send an e= mail to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/= pandoc-discuss/CAPGHSexApDXCp-ACUJdC4O5pH%3DO144LkGez6dEDWGwCTUQxCug%40mail= .gmail.com. --0000000000002ec3e305c27b4ab7 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Ok thanks.

Le=C2=A0sam. 15 mai 2021 =C3=A0=C2=A019:54, = John MacFarlane <jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org> a =C3=A9crit=C2=A0:

At this time, no, it's just a string.

Cl=C3=A9ment Aubert <
aubert.clement-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> writes:

> Hi,
>
> If I'm not mistaken, since
> https://github.com= /jgm/pandoc/commit/699d289cc5913c3cb0ec7b1b3d7ae767cbe55339
> we can access the `sourcefile` and `outputfile`variables from the temp= lates.
>
> Do those variables have any structure?
> Currently the `inputfile` and `outputfile` would contain e.g.
> `docs/about.md`
> and
> `docs/about.html`,
>
> Is there an way to extract the file name (about), the path=C2=A0 (docs= /), the
> extension (.md or .html), or a combination of those?
>
> I feel that this variables are not arrays and could not find my answer= in
> https://pandoc.org/MANUAL.html#templates
>
> Thanks!
> Cl=C3=A9ment.
>
> --
> You received this message because you are subscribed to the Google Gro= ups "pandoc-discuss" group.
> To unsubscribe from this group and stop receiving emails from it, send= an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
> To view this discussion on the web visit https://groups.google.co= m/d/msgid/pandoc-discuss/e266f9ed-a1df-4469-a773-127cdf488845n%40googlegrou= ps.com.

--
You received this message because you are subscribed to the Google Groups &= quot;pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an e= mail to pand= oc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To view this discussion on the web visit https://group= s.google.com/d/msgid/pandoc-discuss/CAPGHSexApDXCp-ACUJdC4O5pH%3DO144LkGez6= dEDWGwCTUQxCug%40mail.gmail.com.
--0000000000002ec3e305c27b4ab7--