Is there a way to compile a handlebars template on the fly and insert it into the DOM?
Like say,
<a {{action 'callAction' items}}>Some text</a>
for now, if this is done using a {{{ }}} this renders as
<a {{action 'callAction' [object Object]>Some text</a>
and the action will obviously not be fired. Any way to achieve what Ember does while precompile?
EDIT:
I have tried
Ember.HTMLBars.compile(<code>)
but it returns an object, but not sure how to determine the template out from it.