Recursive partials in templates? #10008
Unanswered
AdamantGarth
asked this question in
Q&A
Replies: 1 comment
-
"(loop)" gets emitted by doctemplates when the nesting gets over a certain level (something like 50 levels). It can't tell it's going to be infinite, of course, but at a certain point it bails. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have a pandoc template that should render a recursive structure. Here's a minimal example:
template.tmpl
recursive.tmpl
data.yml
I edited down the amount of foxtrots, but otherwise the result looks like this:
It's nice that pandoc caught an infinite recursion here and stopped it with a
(loop)
entry. But I'm not sure what causes it. The first level of recursion seems to work fine (Charlie got expanded correctly), problem starts with the second level. I'm also not sure if this is an issue with pandoc, or if I'm just using partials wrong :)Beta Was this translation helpful? Give feedback.
All reactions