Haml scaffolding for Rails

Haml is a masterstroke - since moving over to it, writing markup has ceased being the chore it was. In fact, it’s so logical and intuitive, and saves so much time, I often wonder how I coped without for so long.

The one irritation is that Rails does not yet support Haml in its scaffold generator, and new views and layouts have to be manually converted each time.

I have found two solutions to this, so far: firstly, Daniel Fischer’s haml generator kills two birds with one stone, by also including support for generating relevant RSpec testing configuration files. A brief testing has revealed no obvious problems.

Secondly, James Golick’s resource_controller claims to do a similar job, although I am yet to test this at the time of writing.

Next on my wishlist: An automatic ERB <-> Haml converter.

Bookmark it: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • Digg
  • del.icio.us
  • DZone
  • Reddit
  • StumbleUpon
  • Technorati
  • Facebook

Post a Comment

Your email is never published nor shared. Required fields are marked *

*
*