-
-
Notifications
You must be signed in to change notification settings - Fork 59
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
inheritance chain argument (default values) passing problem #306
Projects
Comments
im not really sure, but I can say those mechanics are baked in for good for the foreseeable future. they are not easy to change and Mako is not seeing active development right now. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Maybe it's not a bug at all, but i find argument passing/inheriting in the inheritance chain to be obscure.
Example:
And two cases (first works, but second don't):
Though args with default values are set in <%page> and are valid/visible in the inheritted template (base.mako; note inheriting (inheriting.mako<-base.mako) involved) , but not in the inheriting template and it's named blocks.
I know that i could pass args to named blocks via args param explicitly, but shouldn't <%page args (default values) also be inherited? (render() supplied args are visible in all templates/contexts)
In other wors: is there any posibility to set all arg default values in one place?
The text was updated successfully, but these errors were encountered: