0

Was wondering if there's anything like ruby's .send for htmlbars. Been trying to search for it, but can't seem to find a proper answer. Here's what I want to do:

{{"name-of-helper" arguments}}

As simple as this. Is there any trick under it to achieve this effect?

4

1 回答 1

2

没有内置或补充的,但如果您需要,您可以自己编写一个

Ember 包含“组件”帮助器,它允许您动态构建组件 - 它不完全相同,但可能适合您的需要。

于 2015-08-31T12:54:08.917 回答