From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/32566 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stephan Meijer Newsgroups: gmane.text.pandoc Subject: Open Discussion: Features of Templating Date: Tue, 9 May 2023 07:08:08 -0700 (PDT) Message-ID: Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_1382_2061504056.1683641288319" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="12307"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBCYOPL5A34MBBSNH5GRAMGQEVQKFGEI-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Tue May 09 16:08:15 2023 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-oa1-f55.google.com ([209.85.160.55]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1pwO0k-0002tZ-M5 for gtp-pandoc-discuss@m.gmane-mx.org; Tue, 09 May 2023 16:08:14 +0200 Original-Received: by mail-oa1-f55.google.com with SMTP id 586e51a60fabf-19297b852cfsf41717364fac.0 for ; Tue, 09 May 2023 07:08:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20221208; t=1683641293; x=1686233293; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to:x-original-sender :mime-version:subject:message-id:to:from:date:sender:from:to:cc :subject:date:message-id:reply-to; bh=ftD8o1FPBIKab2qlxIvA5lLbAs/WWZKCEyhVogxv5p0=; b=DWAIGUYnMM3U0/CLOnhIsRzYN68iUxLuclv6C8NT9yYLahK+Wp6DpB1PRe3IBY3c5N tqZS+SuGnUmG6KDBQoT9Lr5QlTDxrj1L1zPsEltxPzFGVT9sEY8wddRELiXr3LaNEwgW hGsERASXl4o2gZLDFAxvDb0GdxDCDmPZdtAS1Tsu7vHgkBHAgWmxVVUrXiV4f1RxMPmN 8zLFe5UMm2BVUhzWaDFm0ZLkOc907h2IvMZ4mBoAkWgayeRJZ0kjzGVW4TGDYjWGysNW oz5FUw7CnIuJhRKntLZ331I8avppq0Vvbssu4mJsJ/BdLeBafF/ms+5QYHmY19M+K3er BGWA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=stephanmeijer-com.20221208.gappssmtp.com; s=20221208; t=1683641293; x=1686233293; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to:x-original-sender :mime-version:subject:message-id:to:from:date:from:to:cc:subject :date:message-id:reply-to; bh=ftD8o1FPBIKab2qlxIvA5lLbAs/WWZKCEyhVogxv5p0=; b=ojgcj69l+ooCB2a2zW0MpUCChLmhjI3zFM2SIcqQuoEh47RdnGhEArugpUsMCXmZ06 eyKXQ/H3tjwqRKqiNNwpPiUVaSoRW3/xRaR82gT2QA+Dj64e1a/GTdK9hsgzc8kWALAx zBGLO3op1Zf6ckGqBlfBwOTg2DcN0vg8gYBpHpR+rzatk0vbVoxRlIJ7GqZcgBkT5sRA tBjxxedxUq3RarYt47NMtqfnZ6ENzQsoXQy+QryLATfjn3GqsfexSoSSqo6UsE3X8TYF vCN0JN1G1PnYUZ95AFn848ocpGU5k58K3aghZ2ej/IZIpkDC1MObzErmIbhrhg2Gw6V4 4GoA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683641293; x=1686233293; 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-sender:mime-version:subject:message-id:to:from:date :x-beenthere:x-gm-message-state:sender:from:to:cc:subject:date :message-id:reply-to; bh=ftD8o1FPBIKab2qlxIvA5lLbAs/WWZKCEyhVogxv5p0=; b=GHcwwl73idjSlJTUyESxVY2CWj6HIeVyXJ2znT9VUOCeqs1rLo+0kRF4Wb8Db+JeL1 SGWhPsG142l0IqSVNncn7p1nreRxpUkyEbBsi3YmAysvQ90jp83drpn/ukykX3MqgAZT ZV4rjBHsooKNbtIShXFQkcVyt02ZXipxIGvk9L7taHIyL41YbEOl5E6aTe576zBaGsFO D7VI9RSsb2MkMybfO041bxT+aP8AVSxB7CJhkHlr7MDOKhMtcvYUYaOLPkml0vq3BQRg uDlq3EZf47XxHf0SbGznLw83BTseHYTgEa3/inLZ0p43yJQZUunKMAW96B2O7/v1Dk1P Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AC+VfDxmwOsGZnXalWgEO/AcgcOapluxu5xJJGpwA0IEp6UrZT/5vhk0 F27YCoersE5JJcKFsCsLXaE= X-Google-Smtp-Source: ACHHUZ4AX9NF3oO1DKNk2nPqvX5KtcApmy8cW46UUdHKOO3fVP3mtqzTEoI1XiCBgt2kxg1UyHZjdQ== X-Received: by 2002:a9d:1b42:0:b0:6aa:e824:296d with SMTP id l60-20020a9d1b42000000b006aae824296dmr777877otl.0.1683641293597; Tue, 09 May 2023 07:08:13 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a05:6820:1989:b0:54e:cae0:6a24 with SMTP id bp9-20020a056820198900b0054ecae06a24ls274705oob.1.-pod-prod-07-us; Tue, 09 May 2023 07:08:09 -0700 (PDT) X-Received: by 2002:aca:b557:0:b0:390:7dc9:ddc9 with SMTP id e84-20020acab557000000b003907dc9ddc9mr713737oif.10.1683641288825; Tue, 09 May 2023 07:08:08 -0700 (PDT) X-Original-Sender: me-nPKYAObcRdo6Blr+0TYHagC/G2K4zDHf@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:32566 Archived-At: ------=_Part_1382_2061504056.1683641288319 Content-Type: multipart/alternative; boundary="----=_Part_1383_1974444443.1683641288319" ------=_Part_1383_1974444443.1683641288319 Content-Type: text/plain; charset="UTF-8" I would like to create an open discussion around this. ------------------------------ Hi all, As I understand, the templating engine Pandoc uses is built-in. This is all good, but I feel like there are some missing features. One feature I personally miss: If-statement conditions What I miss most, is being able to create conditions in if-statments. For example: %if(pagetitle == "null")% ... %endif% Currently this seems not possible. Other users that have noticed this: - https://stackoverflow.com/questions/45404607/if-conditionals-in-pandoc-templates-depending-on-value-of-a-variable ------------------------------ Feel free to add your own points. -- 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/dbe4c60c-1178-406f-b794-ce8c9807c2c1n%40googlegroups.com. ------=_Part_1383_1974444443.1683641288319 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

I would like to create an open d= iscussion around this.


Hi all,

As I understand, the templ= ating engine Pandoc uses is built-in. This is all good, but I feel like the= re are some missing features.

One feature I personally miss:

If-statement conditions

What I miss most, is being able to= create conditions in if-statments. For example:

%if(pagetitle =3D=3D "nul= l")%
...
%endif%

Currently this seems not possible.

Other users that have n= oticed this:


Feel free to add your own points.

--
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/dbe4c60c-1178-406f-b794-ce8c9807c2c1n%40googlegroups.= com.
------=_Part_1383_1974444443.1683641288319-- ------=_Part_1382_2061504056.1683641288319--