A couple handy Rails helpers - conditional comments and docttype 1
A buddy of mine, Tieg, from 12 Spokes wrote a Rails helper for conditional comments. That combined with Jeremy Voorhis’s doctype and html tag helpers clean up the top of my layouts nicely, when I use ERb. When I use Markaby, which takes care of doctype and html attributes for you, the conditional comments helper is still useful.

Articles via rss or email
ctrl-c