Created
October 7, 2013 18:14
-
-
Save cullymason/6872469 to your computer and use it in GitHub Desktop.
A simple Handlebars helper for using bootstrap icons icons. Simple but useful.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Ember.Handlebars.registerBoundHelper('icon', function(iconName) { | |
iconName = iconName.toString(); | |
return new Handlebars.SafeString("<span class='glyphicon glyphicon-"+iconName+"'></span>"); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment