As this 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?
لا يمكننا استخدام hbs في هذه الحالة لأن مُجمِّع hbs داخل الأدوات (widgets) يُترجم إلى نموذج افتراضي (virtual dom)، بينما يستخدم المُجمِّع لملفات .hbs تنسيقًا وسيطًا خاصًا بـ Glimmer.
يمكننا إنشاء امتداد آخر مثل .widget.hbs أو ما شابه ذلك لتحقيق ذلك.
لكنني أعتقد أن الغالبية العظمى من الوقت يكون من المنطقي الاحتفاظ بكود الأداة داخل الأداة نفسها. سأحتاج إلى رؤية مثال مقنع على غير ذلك.