# Posts = postsToRender 你调用的是哪一个 .html.erb？

**URL:** https://meta.discourse.org/t/posts-poststorender-which-one-do-you-call-html-erb/124056
**Category:** Development
**Created:** [2019年七月26日 13:37 UTC](https://meta.discourse.org/t/posts-poststorender-which-one-do-you-call-html-erb/124056 "2019-07-26T13:37:23Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![merefield](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/merefield/32/176214_2.png) [@merefield](https://meta.discourse.org/u/merefield)
#### Post date: [2019年七月26日 13:44 UTC](https://meta.discourse.org/t/posts-poststorender-which-one-do-you-call-html-erb/124056/2 "2019-07-26T13:44:58Z")

</div>

这是一个 [引用 Ember 组件的 Ember Handlebars 模板](https://guides.emberjs.com/release/components/)，目前与 Ruby 无关。

你最好先熟悉一下 Ember 的工作原理。

在 Discourse 中，Ruby 很少用于渲染内容，它主要用于提供数据和处理数据的变更。

你看过插件指南吗？

另外，请查看 [How can I make my own Discourse plugins? - #2 by merefield](https://meta.discourse.org/t/how-can-i-make-my-own-discourse-plugins/90032/2)

---

_[View the full topic](https://meta.discourse.org/t/posts-poststorender-which-one-do-you-call-html-erb/124056)._
