Helper that outputs an action


I would like to create a helper that will take a tokenized string and replace tokens with action links. For example I’d like to turn {{my-helper “Checkout {foo} and then do {bar}.”}} into “Checkout {{action do ‘foo’}} and then do {{action do ‘bar’}}.”

was able to do this in 1.7 by calling the action helper directly from the helper string concatenation, but with 1.10 that got quite a bit more complicated.