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

Use Contextual Component pattern to yield multiple blocks in Hero

オープン
#91 コメント 0 件 リアクション 1 件 担当者 0 名 GitHub で見る
主要言語
JavaScript
スター
172
フォーク
142
PR マージ指標
30日以内にマージされた PR はありません

説明

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

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。