How to generate Tweet buttons on-the-fly with Ember.js/RequireJS


I want to be able to use the Tweet button code for websites within templates for Ember.js, whilst loading the API in javascript and rendering the buttons dynamically, similar to - a Mixin for Ember.

What exactly do I need to implement to achieve this?