Search code examples
ember.jshandlebars.jshtmlbars

Is there anything like ruby's .send in HTMLBars or Handlebars?


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?


Solution

  • There is no built-in one or supplemented one but if you need it you can write one for yourself.

    Ember includes "component" helper which allows you to dynamically build component - it's not exactly the same, but might suit your needs.