Flutter-Bounty-Hunters / static_shock

A static site generator for Dart.
MIT License
58 stars 5 forks source link

[Shock] - Let components use other components #108

Closed matthew-carroll closed 1 month ago

matthew-carroll commented 1 month ago

Some components might want to use other components.

For example, the Flutter Bounty Hunters blog has a component that displays social media sharing buttons. It also has a footer component, which displays the same buttons. The footer component would like to include the social bar component.

Giving components access to other components creates the possibility of an infinite loop. For now we'll accept that possibility. It's not clear if there's a reasonable way to identify this situation in code and prevent it.