funcunit
Version:
<!-- @hide title
15 lines (13 loc) • 307 B
JavaScript
import Bitovi from '../bitovi';
can.Control('Bitovi.OSS.CommunityTab', {
defaults: {
view: ''
}
}, {
init: function() {
can.Mustache.registerHelper('formatDate', function(date) {
return moment(date()).calendar();
});
this.element.html(can.view(this.options.view, this.options.state));
}
});