ウィジェットのテンプレートとして hbs ファイルを使用する

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?

raw hbs 名をそのまま受け付けるようにするのは妥当なアイデアだと思います。@eviltrout、あなたの意見はどうですか?

この場合、hbs を使用することはできません。ウィジェット内の hbs コンパイラは仮想 DOM にコンパイルされ、.hbs のコンパイラは Glimmer の中間形式を使用するためです。

別の拡張子 .widget.hbs などを導入して対応することも可能ですが、多くの場合、ウィジェットコードはウィジェット自体に保持することが理にかなっています。説得力のある例を見て判断する必要があります。

関連:

これはヘルパーをサポートしていますか?例:

    <td style={{border-color c.color}}>

テンプレートの一部として提供すると動作しないため、困っています。