Suggestions on printing a populated template

I have a template (.hbs) that I would like to print from my main application. I don’t necessarily need to display the template other than the print preview screen.

Currently, I have the template being displayed in a modal window and I’m using javascript to print it from didInsertElement:


I would prefer to not show the modal window if at all possible. Any suggestions?

Well…I ended up using a

to open up the print window and to issue the close action for the modal


In the close action for the modal I do a this.disconnectOutlet… and


It’s dirty but it works, unless there is a more Ember way to do this.