4 'libs/text!./template.html'
5 ], function($, _, template) {
9 return function(sandbox) {
12 dom: $(_.template(template)()),
19 start: function() { sandbox.publish('ready'); },
20 getView: function() { return view.dom; },
21 showMessage: function(msg) {
22 view.dom.html('<span>' + msg + '</span>').show();
24 clearMessage: function(report) {
26 if(report && report.message) {
27 view.dom.html('<span class="success">' + report.message + '</span>').show().fadeOut(4000);