From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/28353 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?UTF-8?Q?Cl=C3=A9ment_Aubert?= Newsgroups: gmane.text.pandoc Subject: Structure of the outputfile variable in template Date: Sat, 15 May 2021 12:09:51 -0700 (PDT) Message-ID: Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_196_1337114408.1621105791401" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="33362"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBCM37TODUUORBAFZQCCQMGQEDK77EQI-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Sat May 15 21:09:54 2021 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-ot1-f58.google.com ([209.85.210.58]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1lhzfe-0008UA-Fd for gtp-pandoc-discuss@m.gmane-mx.org; Sat, 15 May 2021 21:09:54 +0200 Original-Received: by mail-ot1-f58.google.com with SMTP id f7-20020a9d5e870000b02902f479dba730sf1944991otl.21 for ; Sat, 15 May 2021 12:09:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=sender:date:from:to:message-id:subject:mime-version :x-original-sender:reply-to:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-subscribe:list-unsubscribe; bh=cVZR8UOh7LWD2rl84nkAJXHyHfCMqXpvZkUUYW99R60=; b=IchOTm2eZjfq+9AhTFJe1DXvJpVJMtktt1btEOQGjQbhU7IfbC/97Sj/TX8hmYE2Co K7XHEvRcvbXV0Sid+VYlvmrXyt/FmGCPxWSKZ5qo9X/y2R4JDRU3R2opiPUajBLR+F7v FQLMe6bSFvpKxhiSpwD8Aj1LML+WV5nKDFt8Pw2otTsA4Qi5B1D3j++tLBoLDEaQZkpr c7Op3BSxEOPG3dInxzlKXQrFBWhXLR4+zaydq/IS6UN42vs1PY6XB4cBMTbrtGiiMxwb FYgTLSWkoqwJJgPuJNgBkGP9JwbgLJzCrGFzD9eZO8WKkcmFKwW9+uFm8biOCe+7A9NB WASA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:message-id:subject:mime-version:x-original-sender :reply-to:precedence:mailing-list:list-id:list-post:list-help :list-archive:list-subscribe:list-unsubscribe; bh=cVZR8UOh7LWD2rl84nkAJXHyHfCMqXpvZkUUYW99R60=; b=QbsxQTdv3miKmbeOSl8u1C9drRKFew3pfaumuaPrbjeW/Yx2kDd5gAXgK7i8WU20XK MWhOSjW8NfWoccMApVOkT5SpN9+JYDCgZG/skwVFeTIuFy6Ha50CiicrU1p5sQFoDOPy IHSFsOXo3oYeOCd6/rNvd4WHJYD+QlugXC5OxMNLt9POQLJjQTV2IGjs6J2vQnrI31Lq JwqLedWbQkf+o73+77PwnF7a0Y1gOzj5SdoOc+NNGMP5I2YR5xiwRy1BSbXrKiJmRv7X L0mGm381C1NXACJA0UAUNX+VWNXBNJRsEifxoZGcDey/Hum9AOp9v1hQjf5NaZozgXPE wj5A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=sender:x-gm-message-state:date:from:to:message-id:subject :mime-version:x-original-sender:reply-to:precedence:mailing-list :list-id:x-spam-checked-in-group:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=cVZR8UOh7LWD2rl84nkAJXHyHfCMqXpvZkUUYW99R60=; b=pqpBrj0FHQxStXBrkTv0RQwIMzvfApTcuNYUuKxmc3wCSgIWfyGge+5rbIUeHm160t jKhbZDaDIs8FwXqbSRblFu3eNAgjQwXiEUd+CUrTxKvIU5EunnsbEAzsSt5yjKaE+6a1 07EDmWALhbjvgcWId37hHX3f19f2qF6DDBX6b+ReNp+DaND1l7+DqY+1yfP+/SlDonK+ 7tqhCUVuoO3f5Y2L/wSY/5+6cxNHBDDYOLqrlLBtNNT/hV2Q/72laRtbYK1HHMm4KV2W iPHicCokmM/OxOXR604LvMy3zeRp/hSW4tRLfz2yL6yO8cdGvXmvkn5Y5RMTctycf/zM +IEA== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOAM532qawB4WTtXv69GViBO7nzZGWlaPWzgXEvYzBbeqSbEpfOCiF/x 5sEGhfNRxazREmDoWqv2vDY= X-Google-Smtp-Source: ABdhPJzHeN6yltHpdivtR65jgaAlsK8wljTtPR8r/xAfKR4po943XaBrXPJyzSJAo81DVHN2IEQEuw== X-Received: by 2002:a05:6830:1db6:: with SMTP id z22mr33848582oti.312.1621105793501; Sat, 15 May 2021 12:09:53 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a9d:760d:: with SMTP id k13ls3506646otl.9.gmail; Sat, 15 May 2021 12:09:52 -0700 (PDT) X-Received: by 2002:a9d:7410:: with SMTP id n16mr43238105otk.262.1621105792150; Sat, 15 May 2021 12:09:52 -0700 (PDT) X-Original-Sender: aubert.clement-Re5JQEeQqe8AvxtiuMwx3w@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:28353 Archived-At: ------=_Part_196_1337114408.1621105791401 Content-Type: multipart/alternative; boundary="----=_Part_197_1588882566.1621105791401" ------=_Part_197_1588882566.1621105791401 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi, If I'm not mistaken, since https://github.com/jgm/pandoc/commit/699d289cc5913c3cb0ec7b1b3d7ae767cbe553= 39 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/), 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 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/e266f9ed-a1df-4469-a773-127cdf488845n%40googlegroups.com. ------=_Part_197_1588882566.1621105791401 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi,

If I'm not mistaken, since
= https://github.com/jgm/pandoc/commit/699d289cc5913c3cb0ec7b1b3d7ae767cbe553= 39
we can access the `sourcefile` and `outputfile`variables from = the templates.

Do those variables have any structu= re?
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 p= ath  (docs/), the extension (.md or .html), or a combination of those?=

I feel that this variables are not arrays and cou= ld 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 &= 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://groups.google.com/d= /msgid/pandoc-discuss/e266f9ed-a1df-4469-a773-127cdf488845n%40googlegroups.= com.
------=_Part_197_1588882566.1621105791401-- ------=_Part_196_1337114408.1621105791401--