Bootstrap Icon Classes as Strings

I’m working on the Twitter.Bootstrap.Mvc package with Eric Hexter and one of the things that we’re going to be doing is templating around forms and controls as an extension to the NavigationRoutes project that we’ve broken out.  We’re going to be adding support to include automatic prepending/appending of icons to known form elements.

This has led me to break out an old class I had created a while ago which exposed all the Glyphicons used in Twitter.Bootstrap as strings.  I just created the gist (located here) which looks something like this:

It’s nothing terribly complicated, but it might help if you don’t want to sling the code yourself.