# 使用 hbs 模板向插件出口添加 HTML 内容

**URL:** <https://meta.discourse.org/t/using-template-hbs-to-add-html-content-to-a-plugin-outlet/371373>\
**Category:** Development\
**Created:** [2025年六月23日 17:50 UTC](https://meta.discourse.org/t/using-template-hbs-to-add-html-content-to-a-plugin-outlet/371373 "2025-06-23T17:50:16Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![WolfpackFan](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/wolfpackfan/32/509942_2.png) [@WolfpackFan](https://meta.discourse.org/u/WolfpackFan)\
**Post date:** [2025年六月23日 17:50 UTC](https://meta.discourse.org/t/using-template-hbs-to-add-html-content-to-a-plugin-outlet/371373/1 "2025-06-23T17:50:16Z")

</div>

我可以使用 Discourse UI 中的内置组件编辑器来创建一些 HTML 内容，以显示在插件插槽中（ **插件插槽名称** ：`before-create-topic-button`）吗？

我正在阅读的文档（[Using Plugin Outlet Connectors from a Theme or Plugin - Documentation / Developer Guides - Discourse Meta](https://meta.discourse.org/t/using-plugin-outlet-connectors-from-a-theme-or-plugin/32727)）并没有明确说明这是否应该可以通过 UI 来实现？

我在 UI 中找不到任何可以定义新的 Handlebars 模板的地方，无论是主题编辑器还是组件编辑器。

这是否不支持？任何帮助或指引都会被感激！

---

_[View the full topic](https://meta.discourse.org/t/using-template-hbs-to-add-html-content-to-a-plugin-outlet/371373)._
