simon이 붙여넣은 링크를 부분적으로 인용합니다:
큰 빨간색 사각형으로 아웃렛을 채우는 간단한 예시입니다. 여기서 아웃렛은 토픽 보기에서 게시물 목록 위에 위치합니다:
<script type="text/x-handlebars" data-template-name="/connectors/topic-above-post-stream/a-unique-name">
<div style="height: 200px; width: 200px;background: red"></div>
</script>
data-template-name 속성을 주목해 주세요.
내비게이션 바 템플릿을 오버라이드하는 간단한 예시:
<script type="text/x-handlebars" data-template-name="components/navigation-bar">
{{#each navItems as |navItem|}}
{{navigation-item content=navItem filterMode=filterMode category=category}}
{{/each}}
<div style="background: red; padding: 10px; float: left;">I added this block in the navigation bar template</div>
{{custom-html name="extraNavItem" tagName="li"}}
{{!- this is done to avoid DIV in the UL, originally {{plugin-outlet name="extra-nav-item"}}
{{#each connectors as |c|}}
{{plugin-connector connector=c class=c.classNames tagName="li" args=(hash category=category filterMode=filterMode)}}
{{/each}}
</script>
다시 한번, data-template-name 속성을 주목해 주세요.
템플릿 목록은 여기 있습니다: https://github.com/discourse/discourse/tree/master/app/assets/javascripts/discourse/app/templates
그리고 모든 아웃렛 위치를 강조하는 유용한 테마 컴포넌트입니다: (deprecated) Plugin outlet locations theme component

