【发布时间】:2014-10-21 09:38:10
【问题描述】:
我使用 pandoc 生成带有 YAML 元数据的 index.html。我知道从 pandoc 模板迭代关联数组:
YAML:
- Author: Mastropiero
- Author: Gunter Fraggen
模板:
$for(author)$
$author$
$endfor$
但是...如何迭代列表没有键?
YAML:
- Author:
- [Value1, Value2]
- [Value1B, Value2B]
模板:
$for(author)$
... // how works?
$endfor$
【问题讨论】:
标签: arrays templates yaml pandoc