public inbox archive for pandoc-discuss@googlegroups.com
 help / color / mirror / Atom feed
* nested iteration over variables
@ 2021-10-07 15:20 'Jan Ulrich Hasecke' via pandoc-discuss
       [not found] ` <8fa0e255-4ed7-4db7-eb28-a9aaa8b55613-cl+VPiYnx/1AfugRpC6u6w@public.gmane.org>
  0 siblings, 1 reply; 4+ messages in thread
From: 'Jan Ulrich Hasecke' via pandoc-discuss @ 2021-10-07 15:20 UTC (permalink / raw)
  To: pandoc-discuss

Hi,

consider this as a markdown frontmatter:

---
positions:
   - foo:
     name: Foo
     feature1: 2
     feature2: 4
   - foo:
     name: Bar
     feature1: 4
     feature2: 8
   - baz:
     name: Blibb
     feature1: 25
---

Is it possible to do something like this:

$for(positions)$

$for(foo)$
$foo.name$
$foo.feature1$
$foo.feature2$
$endfor$

$for(baz)$
$baz.name$
$baz.feature1$
$endfor$

$endfor$

I tried it and it does not work.

Background: I want to create a complex tender (bid) document, where I 
have to create tables for each position.foo and each position.baz, where 
each foo and baz has several features.

Any hints?
TIA
juh


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2021-10-11 15:39 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-07 15:20 nested iteration over variables 'Jan Ulrich Hasecke' via pandoc-discuss
     [not found] ` <8fa0e255-4ed7-4db7-eb28-a9aaa8b55613-cl+VPiYnx/1AfugRpC6u6w@public.gmane.org>
2021-10-07 16:13   ` John MacFarlane
     [not found]     ` <m2o880hkyu.fsf-d8241O7hbXoP5tpWdHSM3tPlBySK3R6THiGdP5j34PU@public.gmane.org>
2021-10-11 12:54       ` 'juh' via pandoc-discuss
2021-10-11 15:39         ` John MacFarlane

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).