# Использование hbs-файла в качестве шаблона для виджета

**URL:** <https://meta.discourse.org/t/using-a-hbs-file-as-the-template-for-widget/121420>\
**Category:** Development\
**Created:** [26.Июнь.2019 18:14:49 UTC](https://meta.discourse.org/t/using-a-hbs-file-as-the-template-for-widget/121420 "2019-06-26T18:14:49Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![fzngagan](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/fzngagan/32/259349_2.png) [@fzngagan](https://meta.discourse.org/u/fzngagan)\
**Post date:** [26.Июнь.2019 18:14:49 UTC](https://meta.discourse.org/t/using-a-hbs-file-as-the-template-for-widget/121420/1 "2019-06-26T18:14:49Z")

</div>

As [this](https://github.com/discourse/discourse/commit/dffb1fc4ee8a4d58f48145decb1590a304e8cf7d) commit makes it possible to use hbs style code as a widget template, and that being a simpler and better way of doing things than generating HTML using the hyper script object.

I was thinking if it is possible(or would it be cool as a proposal) to be able to pass a .hbs file as a parameter to createWidget function’s template field instead of writing the template code there itself?

---

_[View the full topic](https://meta.discourse.org/t/using-a-hbs-file-as-the-template-for-widget/121420)._
