# なぜミックスウィジェットとハンドルバーを併用するのですか？

**URL:** <https://meta.discourse.org/t/why-mixes-widget-and-handlebars/104890>\
**Category:** Development\
**Created:** [2018 年 12 月 22 日午前 10:42 UTC](https://meta.discourse.org/t/why-mixes-widget-and-handlebars/104890 "2018-12-22T10:42:17Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![Chong\_An\_Chen](https://avatars.discourse-cdn.com/v4/letter/c/59ef9b/32.png) [@Chong\_An\_Chen](https://meta.discourse.org/u/Chong_An_Chen)\
**Post date:** [2018 年 12 月 22 日午前 10:42 UTC](https://meta.discourse.org/t/why-mixes-widget-and-handlebars/104890/1 "2018-12-22T10:42:17Z")

</div>

Hi everyone, I’ve tried to customize our discourse for about a month.

Then I’d like to ask why mixes widget and handlebars together?  
I think that makes code more complicated and hard to maintain.

For an example, I want to move `Create Topic` button to header, then I just realized the button is created in hbs but header is in widget.

I really want to know the reason why you want to combine different things together.  
I know for performance issue widget is a good tool, but don’t you think that is harder to trace and revise?

And there is another question: Does anyone know how to trigger event in widget from ember controller?  
I’ve been stuck on the confusing architecture for a while..

---

_[View the full topic](https://meta.discourse.org/t/why-mixes-widget-and-handlebars/104890)._
