ember-learn / ember-learn/ember-cli-addon-docs

Use Contextual Component pattern to yield multiple blocks in Hero

Offen
#91 0 Kommentare 1 Reaktion 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
JavaScript
Sterne
172
Forks
142
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

Right now the `docs-hero` component assumes that the only use-case for using it in block form is to pass in a custom logo. However, users may want to render additional content in the Hero template, such as a set of badges. It would be great to allow multiple yields similar to the following pattern:

```
{{#docs-hero as |hero|}}
{{#hero.top}}
{{/hero.top}}

{{#hero.bottom}}
{{/hero.bottom}}
{{/docs-hero}}
```

An example of how a developer might want to use this:

ember_interactivity_demo

Beitragsleitfaden

Beitragsleitfaden öffnen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.