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