js/templates/helpers/icon.js
define(['handlebars'], function(Handlebars) {
return function(value, options) {
var cls = value.indexOf('fa-') == 0 ? 'fa '+ value : 'glyphicon glyphicon-' + value;
if ($.inArray('cls', options.hash)) {
cls = [cls, options.hash['cls']].join(' ');
}
return new Handlebars.SafeString('<span class="' + cls + '"></span>');
};
});