# Can I override app/views/layouts/application.html.erb from a plugin?

**URL:** <https://meta.discourse.org/t/can-i-override-app-views-layouts-application-html-erb-from-a-plugin/47267>\
**Category:** Development\
**Created:** [7월 14, 2016, 1:57오전 UTC](https://meta.discourse.org/t/can-i-override-app-views-layouts-application-html-erb-from-a-plugin/47267 "2016-07-14T01:57:38Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![riking](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/riking/32/170938_2.png) [@riking](https://meta.discourse.org/u/riking)\
**Post date:** [11월 2, 2020, 12:14오전 UTC](https://meta.discourse.org/t/can-i-override-app-views-layouts-application-html-erb-from-a-plugin/47267/7 "2020-11-02T00:14:03Z")

</div>

다시 읽어보는 중…

> [@npflood](#):
>
> ```plaintext
> <%= raw open("https://myserver.com/#{I18n.locale}/remote/footer").read %>
> 
> ```

`cache` 스탠사에 대해 잊고 있었고, 이 코드가 모든 요청마다 서버를 조회할 것이라고 가정하여 클라이언트 측 fetch도 작동할 것이라고 생각했습니다.

대신, 원격 서버가 테마 컴포넌트(Theme Component)의 HTML Footer 섹션으로 콘텐츠를 \_push\_하도록 하는 방식이 작동할 수 있습니다.

---

_[View the full topic](https://meta.discourse.org/t/can-i-override-app-views-layouts-application-html-erb-from-a-plugin/47267)._
