I have an Ember template that displays text with a Handlebar expression, i.e. {{caption}} . The text that is being rendered contains hashtags, each of which I need to make clickable and go to a specific route in the Ember application.
I created a text parsing helper and replaced each hashtag with a link to the desired route in combination with the hashtag, so now the Handlebar expression looks like this: {{clickable-hashtags caption}} . However, the helper creates links using regular HTML <a href> , and this is returned using Ember.Handlebars.SafeString.
I would like to use the Ember helper method {{#link-to}} for each hashtag instead, but I cannot figure out how to do this. Is it possible for Handlebars to parse link-to tags in a {{caption}} expression template?
galina
source share