I work on a content site that has ad tags served to us from an ad server. They deliver in two ways, either an iframe or using a script tag that then fetches the ad using a document.write in order to collapse the ad if there is none to display.
Ember does NOT like the js version of this ad tag, and won’t display it in a handlebars template. I’m pretty sure this is due to nesting a script tag inside the handlebars (which is a script tag as well).
Is there a way to accommodate this type of ad tag inside a handlebar template?
I had a similar situation when I wanted to integrate Disqus into my Ember site. They provide you with a script tag to just stick wherever you want their content to load, but I wanted to do it the Ember way. I ended up making a DisqusView and basically duplicating the behavior of their script tag in the didInsertElement handler of the view (mostly a copy/paste job). I could go into more detail if you wanted to provide an example of their script.