-
Notifications
You must be signed in to change notification settings - Fork 11
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
Feature: Pass variables to layouts #77
Comments
How does this idea compare to using multiply |
I see I made a typo. I wanted to do this:
how would you do this in multiple blocks? Maybe my understanding of blocks and scoping is insufficient. |
As of right now It would be interesting to see what downsides there are with the following pattern using blocks: layouts/base.html
my-template.html
There is also Notably |
It might be interesting to allow passing variables to layouts to make layouts more flexible and self contained.
e.g. I want to get references from a statement on Wikibase and want to print it in something like:
I would now do:
with the template for "references" being
Instead it would be interesting to reserve pass the title to the layout so that the H1 can be part of the layout. i.e.
Because sometimes you want to use that overarching information in your css or js to make the site more interactive.
With this structure we could allow passing up to 9 variables to the layout.
The text was updated successfully, but these errors were encountered: