-
Notifications
You must be signed in to change notification settings - Fork 101
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
Helper within partial doesn't have access to the partial context #15
Comments
Update: If I remove the hash parameters for the partial it works just fine:
Results in:
So the helper in |
I think I got to the root of it:
How could we fix this?
The second option seems preferable to me. That way the separation of contexts still holds when using |
I went another way in my fork and added a |
Hi,
thanks for this great library!
Here is the code to reproduce the issue mentioned in the title:
And here's the output:
As you can see,
options.ValueStr("body")
inside thecontent
helper is an empty string, while{{body}}
in the partial renders just fine.I would expect the
content
helper to have access to the context it is used under.Is this intended behavior?
Best,
Kai
The text was updated successfully, but these errors were encountered: