From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/14971 Path: news.gmane.org!not-for-mail From: D L Newsgroups: gmane.text.pandoc Subject: Re: Printing conditional parts - looking for suggestions Date: Wed, 18 May 2016 14:45:00 -0700 (PDT) Message-ID: <902c5529-b3a3-441c-8108-1e1e74d58c93@googlegroups.com> References: Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_26_1341823318.1463607900775" X-Trace: ger.gmane.org 1463607904 19308 80.91.229.3 (18 May 2016 21:45:04 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 18 May 2016 21:45:04 +0000 (UTC) To: pandoc-discuss Original-X-From: pandoc-discuss+bncBC3LLYX4XEDRBXOE6O4QKGQEW5C4Q5I-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Wed May 18 23:45:04 2016 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane.org Original-Received: from mail-qg0-f64.google.com ([209.85.192.64]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1b39H4-00083n-RC for gtp-pandoc-discuss@m.gmane.org; Wed, 18 May 2016 23:45:02 +0200 Original-Received: by mail-qg0-f64.google.com with SMTP id b14sf1253819qge.1 for ; Wed, 18 May 2016 14:45:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20120806; h=sender:date:from:to:message-id:in-reply-to:references: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=DGIXaGvu/ftiMEtjWkwg4lLHbie6vp+0c1bT8LPfEl4=; b=AZOQb4F7l69gcldvxrComUQ5tlevzkikA4T5yEr3b2J6bpiGlYRijnU6MxQ6BZOQCw UrneCSzXLu//Ha7pMjQ2G4Lsap6fy0JGdnOkBeLWtRtofkdolT8K+nqDfZExEtTdTzwN Tem1dC4wutfw1EI5E5GCndyQJteZKuwTgHJtdy5AtzodLlzdBSs0VFvaOQsv7NR6lQE8 /XZFf/jQFFSpjwf5gVvhxeanhFaJhMmNkIQXZDFgRVS16S+tMhSFJEFwePep4jQ4kPPT mZxziTLUxMgl5jVhW+kZWr9YRMZIJYFMDF/xNHQ6VUKVdRDcTNYCX4yCbf6QNUs0j20B 7nyw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:message-id:in-reply-to:references: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=DGIXaGvu/ftiMEtjWkwg4lLHbie6vp+0c1bT8LPfEl4=; b=Xe3axKEbPPfhSfHmn+5M7DW//mQznhq7wVOrfs9hPYRQq71dfSjusRVLgJBcX7UjCT zwb/coHJxCTC6mL6b0pVTd9wPDnCiEEDVbSLJc3ebzq6Lo9yry3k/ZyULAuJuEpj7XXp ApnKRD5GDFH6hHnWgCC+YXK6MPq/PdRP6Ltpv7wsFFJe+8r1nu0qpJJbn/l+8PjfAVQo r4wl4iG6JOGfSoOfAiXb2vVnCWUMbZLFOe06et2jMWpUVdJz4aLah/6FLsJ7EaBJbn77 JB8OdbWq8PNpJj9u3TS9e3KpElUDXnXEDEl+F64/SdGLxhLHQKO4F5FrMs/m78ZMw0kT hr4w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=sender:x-gm-message-state:date:from:to:message-id:in-reply-to :references: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=DGIXaGvu/ftiMEtjWkwg4lLHbie6vp+0c1bT8LPfEl4=; b=ku3nigDET6iCj2cais/NMdzzO8bxvbTYeJ9hAzQqg8P8C38nuKBJGYeyW6OC58dgr6 IEKkY4c4wE7lfcXdxQ8oGAqERtMVNePdwmL2z9PSQPC1nlX1KxQT08t+hwzyaaOVbk1I C0W8g7uIvcKWL8o3tGAe2K/c5fYP3bZholxgYcogS0P7fFoL0x1nEpLPD5iUxtjxh1Qi 5VsET8IKW0k9Gpje48pF6VQqegxHIX62A4TLIf+DlKEepsLFuNUdzAZH1N2jqd0jzZmT YQraO846wlabjAkHqn5rqclxgRalMDQvdfD2dAabaZ7M2l0awnSA+sGdjwbkXhHBJw8M 7fbQ== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOPr4FWqFggsIFiHMpwIOKU14QEYbhRiejNCQvMKn2khp/yQas0u5YEIBE0O7ngcCDFpQA== X-Received: by 10.157.3.195 with SMTP id f61mr26750otf.1.1463607902106; Wed, 18 May 2016 14:45:02 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 10.157.46.83 with SMTP id c19ls520149otd.43.gmail; Wed, 18 May 2016 14:45:01 -0700 (PDT) X-Received: by 10.157.14.197 with SMTP id 63mr299315otj.0.1463607901347; Wed, 18 May 2016 14:45:01 -0700 (PDT) In-Reply-To: X-Original-Sender: dl62505-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-Spam-Checked-In-Group: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Google-Group-Id: 1007024079513 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , Xref: news.gmane.org gmane.text.pandoc:14971 Archived-At: ------=_Part_26_1341823318.1463607900775 Content-Type: multipart/alternative; boundary="----=_Part_27_473100982.1463607900775" ------=_Part_27_473100982.1463607900775 Content-Type: text/plain; charset=UTF-8 I'm a recent newcomer to pandoc but I'll add this idea to the discussion. I followed this thread (and others) since I have an interest in pre-processing and post-processing so that different streams of documents/presentations can be produced. For example producing a batch of personalised documents or slidedecks. My current experiment in building a pandoc chain is to use php variables at beginning and end of command chain. As far as I can see from my initial reading filters do not seem to meet this "personalisation" requirement. For example using a php template for reveal.js output where php vars are embedded for presentation to individual readers. In fact I have created a custom mime type in /etc/mime.types for markdown where a file with extension .pmd can be executed as php script. text/x-markdown md pmd The extension md is for normal markdown The extension pmd is for markdown with embedded php variables. This is working on my localhost apache server. pmd has to be added to apaxhe conf file. AddType. I can expand further if there s interest. It is an early stage experiment. In fact the same principle can apply to yaml, svg, css, js. (php types: pyaml, psvg, pcss, pjs) I see that there is a php yaml package from Symfony. -- 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 post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/902c5529-b3a3-441c-8108-1e1e74d58c93%40googlegroups.com. For more options, visit https://groups.google.com/d/optout. ------=_Part_27_473100982.1463607900775 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
I'm a recent newcomer to pandoc but I'll add this = idea to the discussion.
I followed this thread (and others) since I h= ave an interest in pre-processing and post-processing so that different str= eams of documents/presentations can be produced.
For example producing= a batch of personalised documents or slidedecks.

My current = experiment in building a pandoc chain is to use php variables at beginning = and end of command chain.
As far as I can see from my initial rea= ding filters do not seem to meet this "personalisation" requireme= nt.
For example using a php template for reveal.js output where php var= s are embedded for presentation to individual readers.

In fact= I have created a custom mime type in /etc/mime.types for markdown where a = file with extension .pmd can be executed as php script.

text/x-markd= own md pmd

The extension md is for normal markdown
= The extension pmd is for markdown with embedded php variables.

This = is working on my localhost apache server. =C2=A0 pmd has to be added to apa= xhe conf file. =C2=A0AddType.

I can expand further if there s intere= st. It is an early stage experiment.
In fact the same principle = can apply to yaml, svg, css, js. =C2=A0 (php types: pyaml, psvg, pcss, pjs)=
I see that there is a php yaml package from Symfony.

--
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 post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To view this discussion on the web visit https://groups.google.com/d/= msgid/pandoc-discuss/902c5529-b3a3-441c-8108-1e1e74d58c93%40googlegroups.co= m.
For more options, visit http= s://groups.google.com/d/optout.
------=_Part_27_473100982.1463607900775-- ------=_Part_26_1341823318.1463607900775--