Inject data into partials/sections #67
fholmqvist
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Suggestion
Add a way to build reusable (partial) templates with injected data.
Motivation
After looking around in
example
and fiddling around with a small project, I don't think this is a feature currently. Perhaps partials or sections could be extended to support this feature without having to introduce more concepts.Extending partials
This one makes the most sense to me.
Example partial
Example use
Extending sections
Feels a bit hacky, but makes sense to some extent.
Example section
Example use
Misc
Really loving this project! 😃
Beta Was this translation helpful? Give feedback.
All reactions