From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/28357 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: John MacFarlane Newsgroups: gmane.text.pandoc Subject: Re: Structure of the outputfile variable in template Date: Sat, 15 May 2021 16:54:17 -0700 Message-ID: References: Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="23868"; mail-complaints-to="usenet@ciao.gmane.io" To: =?utf-8?Q?Cl=C3=A9ment?= Aubert , pandoc-discuss Original-X-From: pandoc-discuss+bncBCJZJHG45QDBBNV6QGCQMGQEHXLONPI-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Sun May 16 01:54:32 2021 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-pg1-f191.google.com ([209.85.215.191]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1li476-00066d-PI for gtp-pandoc-discuss@m.gmane-mx.org; Sun, 16 May 2021 01:54:32 +0200 Original-Received: by mail-pg1-f191.google.com with SMTP id l25-20020a6357190000b02901f6df0d646esf1891377pgb.23 for ; Sat, 15 May 2021 16:54:32 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1621122871; cv=pass; d=google.com; s=arc-20160816; b=tn7sXkqGVTaQVdXFYf481LGyv2WP1RTqYGL2ldOdoVOqoJMdOOMO75DsHFoh/3Ve7r BZq4WcEvyjOvMPMYqIQs3F5IrBmND/xHAz69Oi0iBUfLC2ZGPs1yJrs7/1JlV69S3gRN IdOXhro1ReI5AjVKmm9F2SdiRDMHSRPKi/NtcEDt2i4m6PAoOMC/4C/WGuxx8TxGwH0n WoBF8znm24WE3XT9RFUVDc+8BFIK1tJMr0/lfgsl/iSAM9PtdrUP6objeIopre8ezRMi IKlJOaFE5rCjBGsT9JpKrxdml5XTDrNJ/HATeFQxlJI9z3pfsahaLMMXXJtVSyZ+m/QW W2kQ== 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:content-transfer-encoding :mime-version:message-id:date:references:in-reply-to:subject:to:from :sender:dkim-signature; bh=NOieaiEgsHP+sdGbkbT6LZ++G/1wroI2bjMhTKOAQgc=; b=Bd/4NbgAj40CfY1PIiqFz8b9CgSWCksGQrY/nXyFXvrhUoDXiRVzB+SEoBl+gbAAcQ 7F1FMkgIOt4xemM05B7qaDBaPgXf4JniDxbxEt/qJ4pi8eSbnrQQXzV27KtlsnrPsW5d AhZIkT34k5JK3Xz4fo/xQ1TBeBjlnWeJaxRrro3kG84ZNpVKuMwGcd0UMJCI37astM71 31Og5Zaz/hBm/xV/YVtBYPydWFAzSBf4HZjl2IRQbqAcaEYdCWdhhpxryQqA7tZPqU0i MMlfrH9WwZanQNpOzrTuFDg1mc/yvHFpGlQiqnAh9mpRcG1szx2q1htzWfyW7UWDWiQG PN+g== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@berkeley-edu.20150623.gappssmtp.com header.s=20150623 header.b=PvXGrkYA; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::42e as permitted sender) smtp.mailfrom=jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=sender:from:to:subject:in-reply-to:references:date:message-id :mime-version:content-transfer-encoding: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=NOieaiEgsHP+sdGbkbT6LZ++G/1wroI2bjMhTKOAQgc=; b=ZjCqJbTS25uSHiIHVSxK0ljETRbM999XNGoT8+whSuDRfN6yseSFT6eugllo5tIy0T fU+JLx4dFfcV3sMZIkFmUpRqBqC6LKpJLYoSqxITHSKueEtpf2mzTUgGQAm7J3AVwdyJ k38dgxCmZhpL6ELlr0eZAxow48B9NgnpAHnmZKbSI5jVug4MPUzcp911QgvjUSEwApDx L3WpJpxa785DnjUgbwlfA7oECvAmRdYBRFe8J1Xscm1Dg8UIOZHffQFPmjWm9iw9LUfW xj4/9hmbkAsg7Rq8/MwyE29bfg3NKHcx64iqVhYPVhxgqLseM3ZJdRR9q7iMRrikhUF5 04EQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=sender:x-gm-message-state:from:to:subject:in-reply-to:references :date:message-id:mime-version:content-transfer-encoding :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=NOieaiEgsHP+sdGbkbT6LZ++G/1wroI2bjMhTKOAQgc=; b=A1R6JnyAT5UVv9nvsojKJ0bCg50DJ5zM58E5rqKRH7ijAzK2oDvb8tvoOE+oXC81sa Ran4DpbGVLrTaAVz/T4STKJjQdk9oZcXpaqZfuIMExJ1zlLH6Oowr+tOKK1mgjMKMEgD t0ciiBqxg1yKtG/hwLxt0O9jfVz5EKZDIA1hDF70CW4ZQ/zd8rRuc0F8f93u6DGEpll2 C8JziruZtGYeWRFPhz/BUaOGrui5p1P/muT9xMucmG4LLaX4eYmi37po7bBGzVPPVhXo 75Rf7OA65RuvnCyk9rMFTk8ad5QZhbDyLUZbJmgiA0GqcOhGLH/ek1XdQ9as4ax8L/tc Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOAM532E7d8otua9D0kWHAfJdTbrLlgRTUU9RONrlN1VFs+HsQ4awkly Za4L6o8nJ5xwrYRpwKkmCok= X-Google-Smtp-Source: ABdhPJyfUbAtquG56GKDNOP3iUmyQ9JPj+YWV+yFK+6s7/Q1/h+okIZcsWDE37HO/+KkvHlWoIcKXw== X-Received: by 2002:a17:902:dcce:b029:ef:339:fa6a with SMTP id t14-20020a170902dcceb02900ef0339fa6amr47735567pll.24.1621122871643; Sat, 15 May 2021 16:54:31 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a17:90a:a893:: with SMTP id h19ls6260529pjq.0.gmail; Sat, 15 May 2021 16:54:29 -0700 (PDT) X-Received: by 2002:a17:90a:4298:: with SMTP id p24mr18687827pjg.144.1621122869818; Sat, 15 May 2021 16:54:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621122869; cv=none; d=google.com; s=arc-20160816; b=wgJAMOtqYbQ6jo3vUMKC5FwVtftcH8R/hcx7dPLxYKrqHUim92IHF3kinO6CVlHSgE G0BtdsX/M/EVL/NrrBWA26xA9LTfcp5TPx1bvwkYwQLLgUGxANwyl2yEbPunE/QWPVyG 3uCujihihYAko445XUUEIMVDt+2HW6X/n9/jyJeoyPlp4dd1+8H19uO5L5nDzHrajpm7 nx5YSrBZ2l7Hma3TbZyeA4x83e9fEete+/4K1FoAIziMjPztfNsOy7m61Bz4gHXfIioX avEWzBK+ntzowwAXL+0a1bp4EwQdiKVTBF4mFqHlXgtT5uHTHKZVbrRqjmmaIZGiWdtt EEtQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:message-id:date:references :in-reply-to:subject:to:from:dkim-signature; bh=uAkyxpoNqF8I99dFIiz4VtDBNli4wMKaXtFdIg1Ms2Q=; b=fCbaGXFWMEqd8DH0BIreG/8SBMOGGQEhRPagqpMhbyVWRj82ufbk17RlDX2a5nOXz3 Tjti+T/SPSen18MRhKtfUhniJkrMr3kvBNVDI/M5et3Mryb93Dux89374qAl+cAtA4rO BuOo9LAp9FNyAOcLFrjhxSzna2ItfUSkA0WKqWGXHBLOMEy2zqEjq9PMm9IMu9jtWKgB SGR0SzDcl1nKP6bSgNAahDtfzn1/aDCz5auyzDoYzfxLsrxRFuE1dbGzRrkl7N4LY4u0 4+34lCfsgHamLELjYNBRijaksLGC4nAEf2m5xWu009UlTC/sxh6AXZbw/K0SxfkB081m /8Mg== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@berkeley-edu.20150623.gappssmtp.com header.s=20150623 header.b=PvXGrkYA; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::42e as permitted sender) smtp.mailfrom=jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org Original-Received: from mail-pf1-x42e.google.com (mail-pf1-x42e.google.com. [2607:f8b0:4864:20::42e]) by gmr-mx.google.com with ESMTPS id b17si954197pgs.1.2021.05.15.16.54.29 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 15 May 2021 16:54:29 -0700 (PDT) Received-SPF: pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::42e as permitted sender) client-ip=2607:f8b0:4864:20::42e; Original-Received: by mail-pf1-x42e.google.com with SMTP id x188so2496103pfd.7 for ; Sat, 15 May 2021 16:54:29 -0700 (PDT) X-Received: by 2002:a05:6a00:850:b029:2b7:af5b:36e5 with SMTP id q16-20020a056a000850b02902b7af5b36e5mr36937647pfk.14.1621122869225; Sat, 15 May 2021 16:54:29 -0700 (PDT) Original-Received: from johnmacfarlane.net (li55-134.members.linode.com. [74.82.3.134]) by smtp.gmail.com with ESMTPSA id g16sm6990918pfr.126.2021.05.15.16.54.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 15 May 2021 16:54:28 -0700 (PDT) Original-Received: by johnmacfarlane.net (Postfix, from userid 1000) id D4772A231; Sat, 15 May 2021 19:54:17 -0400 (EDT) In-Reply-To: X-Original-Sender: jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@berkeley-edu.20150623.gappssmtp.com header.s=20150623 header.b=PvXGrkYA; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::42e as permitted sender) smtp.mailfrom=jgm-TVLZxgkOlNX2fBVCVOL8/A@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:28357 Archived-At: 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 templat= es. > > 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/), the= =20 > extension (.md or .html), or a combination of those? > > I feel that this variables are not arrays and could not find my answer in= =20 > https://pandoc.org/MANUAL.html#templates > > Thanks! > Cl=C3=A9ment. > > --=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= email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To view this discussion on the web visit https://groups.google.com/d/msgi= d/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/m2h7j3mu3a.fsf%40MacBook-Pro.hsd1.ca.comcast.net.