Flutter-Bounty-Hunters / static_shock

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

[Shock] - Components should be able to receive a map of properties #136

Open matthew-carroll opened 3 weeks ago

matthew-carroll commented 3 weeks ago

[Shock] - Components should be able to receive a map of properties.

For example, consider a component in _includes/components/contributors.jinja. That component wants a list of contributors to display. We'd like to be able to include it like:

{{ 
  components.contributors({ 
    "contributors": github["flutter-bounty-hunters"]["ffmpeg_cli"] 
  }) 
}}