framework/ember/app/helpers/fa-icon.js

7 lines
219 B
JavaScript
Raw Normal View History

2014-12-20 14:26:46 +08:00
import Ember from 'ember';
export default Ember.Handlebars.makeBoundHelper(function(icon, options) {
2015-01-21 11:59:00 +08:00
return new Ember.Handlebars.SafeString('<i class="fa fa-fw fa-'+icon+' '+(options.hash.class || '')+'"></i>');
2014-12-20 14:26:46 +08:00
});