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:

...
..
printModal.print();

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

Well…I ended up using a

Ember.run.later((function)()...

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

self.sendAction('close');

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

$('.modal-backdrop').remove();
$('body').removeClass('modal-open');

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