david
(David Taylor)
6월 19, 2025, 6:48오전
4
커넥터 컴포넌트를 플러그인 아웃렛에 렌더링하는 방법은 두 가지가 있습니다.
하나는 컴포넌트를 /connectors/{outlet-name}/my-connector.gjs(또는 .js/.hbs 조합)에 배치하는 것입니다. 다른 방법은 컴포넌트를 다른 위치에 작성한 후 api.renderInOutlet("{outlet-name}", MyConnectorComponent)을 호출하는 것입니다.
두 경우 모두 아웃렛 인수가 컴포넌트로 전달됩니다.
Discourse uses the Ember JS Framework for its user interface. On top of Ember, Discourse provides a number of APIs to allow themes to customize the user interface. The most commonly-used API is Plugin Outlets.
These outlets are positioned throughout Discourse core, and allow themes to render Ember Components inside them. Those components are given access to some contextual information called “outlet args”.
Some outlets also “wrap” part of the core user interface, which allows themes to add the…