# 원하는 아웃렛에 템플릿을 넣을 수 없습니다

**URL:** https://meta.discourse.org/t/cannot-put-the-template-in-the-desired-outlet/330650
**Category:** Development
**Created:** [10월 13, 2024, 9:22오전 UTC](https://meta.discourse.org/t/cannot-put-the-template-in-the-desired-outlet/330650 "2024-10-13T09:22:58Z")
**Posts on this page:** 1
**Showing post:** 8

<div class="post-metadata">

### Author: ![david](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/david/32/157490_2.png) [@david](https://meta.discourse.org/u/david)
#### Post date: [10월 14, 2024, 10:38오전 UTC](https://meta.discourse.org/t/cannot-put-the-template-in-the-desired-outlet/330650/8 "2024-10-14T10:38:28Z")

</div>

> [@merefield](#):
>
> 여기서 themeSetting을 헬퍼로 작동하게 만들지 못했습니다. 오류는 없는데 화면이 빈 상태만 뜨네요. 대신 아래 코드를 시도해 보세요:
> 
> ```plaintext
> get bannerTextContent() {
> return settings.banner_text_content;
> }
> <template>
> {{#if this.bannerIsFilled}}
> <div class='persistent-banner'>
> <p>
> {{htmlSafe this.bannerTextContent}}
> 
> ```

네, 헬퍼는 gjs에서 작동하지 않습니다(그리고 필요도 없죠). getter를 정의하는 것은 괜찮습니다. 하지만 그렇게 하고 싶지 않다면 템플릿에서 `settings` "글로벌"에 직접 참조할 수 있습니다:

```gjs
<template>
  {{htmlSafe settings.banner_text_content}}
</template>

```

---

_[View the full topic](https://meta.discourse.org/t/cannot-put-the-template-in-the-desired-outlet/330650)._
