-
Notifications
You must be signed in to change notification settings - Fork 69
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
should includes inherit parent properties? #15
Comments
By default all variables available in all templates hierarchy. But it can be overwritten. You don't need to pass |
Right. Sorry. The use-case I'm thinking of is when I want to use an include to render an item in a collection, so I want to pass some one-off parameters to the included template as well as the parameters from the calling page. So if I do:
And in
I'd like
I should have used this example previously, apologies. ... Thinking about it, I guess I could just expose an
But I'm wondering if this would be useful default behavior? |
Sorry, there is no native way to merge parameters right now. Merge may cause performanse issues in this context. |
OK I'll write a helper. |
If I do:
And in
page.ect
I do:I'd like
user.ect
to have access to@user
. Currently I must pass user explicitly:This can get tedious for complex page. Is there a better way?
The text was updated successfully, but these errors were encountered: