I want to “subclass” {{#link-to}}
(i.e. Ember.LinkView
and the link-to
Handlebars helper). Ember.LinkView
currently supports application-wide changes via Ember.LinkView.reopen()
, but I want to define a helper like {{#my-link-to}}
for specific link behavior only on certain links in my application.
Copying the link-to
helper code and pointing it to MyLinkView
is do-able ( javascript - Extending Ember LinkView - Stack Overflow ) but not sustainable. Is there a nicer way to do this right now? Or should ember expose helper functions like the current linkToHelper()
to allow for inheritance?
The link-to
helper in 1.3.0