Closed ghost closed 5 years ago
Unfortunately no, but I can see how that would be handy. One of the problems you'd face with this pattern is that if you used a component multiple times on a page you'd end up with the same stylesheet being <link>
ed multiple times.
I think implementing this would lead to unexpected behaviors, would require dedupe logic, and it probably better handled by the data being fed into the templating system than the templating system itself.
I have a layout like this:
and a page like this:
and a component like this:
I'd like the
component
styles to append to thelayout
section, bubbling up through thepage
.Is there a way to do this?