Skip to content

24 ways to impress your friends

Vote up?

Tom Armitage

If you’re working in Ruby on Rails, and implementing conditional comments in your code, then you might be interested in the IE Specific Rails plugin I wrote. It basically generates appropriate conditional comments, including ie-specific javascript or css, based upon filenames of CSS files. It means you just have to put one include in the top of your template, and then just name your IE-specific css/js files appropriately to have them automatically included. It’s not too hard to write such code for the templating language of your choice, really, and it forms a nice framework to build upon.