# 弃用主题和插件中的 .hbs 文件扩展名

**URL:** <https://meta.discourse.org/t/deprecating-hbs-file-extension-in-themes-and-plugins/398896>\
**Category:** Development\
**Tags:** dev-news\
**Created:** [2026年三月20日 16:48 UTC](https://meta.discourse.org/t/deprecating-hbs-file-extension-in-themes-and-plugins/398896 "2026-03-20T16:48:11Z")\
**Posts on this page:** 1\
**Showing post:** 12

<div class="post-metadata">

**Author:** ![Canapin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/canapin/32/119591_2.png) [@Canapin](https://meta.discourse.org/u/Canapin)\
**Post date:** [2026年三月31日 13:01 UTC](https://meta.discourse.org/t/deprecating-hbs-file-extension-in-themes-and-plugins/398896/12 "2026-03-31T13:01:41Z")

</div>

> [@LeoDavidson](#):
>
> 如果插件 API 像 Discourse 中的那样脆弱，那设置它的意义何在？

我认为这个问题之前也在这里得到过解答：

> [@We're upgrading our icons to Font Awesome 6!](https://meta.discourse.org/t/were-upgrading-our-icons-to-font-awesome-6/325349/43?u=canapin):
>
> Sorry for the frustration, we try to make these updates easy and provide months of time to get them done — but there’s always a trade-off. If we kept remappings indefinitely we’d already have multiple layers of them from V4 → V5 → V6 and this would be debt that would require its own understanding and maintenance. If we did this for every piece of code Discourse would be much larger and more difficult to understand and work with. Yes, which is why we provide deprecation warnings and instruction…

另外，

> [@awesomerobot](#):
>
> 如果你没有时间去进行偶尔的维护，我建议尽可能减少自定义内容。

请注意，我理解你的沮丧情绪。所有在这里开发插件、主题或组件的人都面临着功能弃用和强制更新的问题。

还有一些人也表达了类似的沮丧：

> [@Steven](#):
>
> 说实话，这越来越让人恼火了。现在每年我们都要重新构建整个组件。维护一个主题本不该这么难。

---

_[View the full topic](https://meta.discourse.org/t/deprecating-hbs-file-extension-in-themes-and-plugins/398896)._
