-
Notifications
You must be signed in to change notification settings - Fork 36
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
(Not indefinitely) Recursive partials templates fail to parse #82
Comments
I ran into another issue that sheds some light. It looks like sections ( This seems to not be an issue on the first partial, but on the partial included by the partial. Hence, the context will not change to the child anymore, hence an endless recursion. |
Thx. I’ll have a look. |
Thanks again! I think this will address the issue appropriately. I limit the context that a partial is evaluated within, before it was the immediate context and its parent, so in your example |
Do you want me to test that PR or something? I don't know how I would use and test a library locally that I otherwise get via package manager. |
It passes your test, but if you have something more involved you can dev a
branch of a package pretty easily. Something like dev pkg#branch.
On Sat, Nov 3, 2018 at 11:31 AM Jan Klass ***@***.***> wrote:
Do you want me to test that PR or something?
I don't know how I would use and test a library locally that I otherwise
get via package manager.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#82 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAZvTODG4pgYCQA69yCsNRymioV1z2-Yks5urbbDgaJpZM4YJlyz>
.
--
John Verzani
Department of Mathematics
College of Staten Island, CUNY
[email protected]
|
I don’t have anything more involved. |
Okay. I’ll merge. If there are issues it can be rethought. Thanks again.
On Sat, Nov 3, 2018 at 2:12 PM Jan Klass ***@***.***> wrote:
I don’t have anything more involved.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#82 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAZvTCOBmLLBv4wnj9s5doaBxqAhwXh_ks5urdyigaJpZM4YJlyz>
.
--
John Verzani
Department of Mathematics
College of Staten Island, CUNY
[email protected]
|
Should I create a new ticket? I have a problem using recursive partials still. In my program it fails to pass on the context. I have difficulties reproducing it in a minimal setup. But what I could reproduce:
The produced output:
|
Thank you for the fixes. At least for my use case, it seems to work for multi-level-recursed partials. |
I created a minimal test file pair in Kissaki@d56e7fc
The parsing takes a while, but then returns nothing.
Instead, I would expect the partial to include itself until the child element does not exist anymore, at which point it continues returning from the recursion.
The text was updated successfully, but these errors were encountered: