Rails & Beyond

  • about
  • contact
Home

SASS

Using HAML for Rails or Sinatra For Readability and For Sanity

admin — Wed, 10/21/2009 - 01:33

Two popular templating formats in Rails are HAML and ERB. I did not use HAML initially because it was too DRY. That was my initial reaction to the new language. Or it was for people who put too much emphasis on "Don't Repeat Yourself" philosophy. But Jesse Crockett and his project forced me to learn HAML and somehow I don't regret that. I use HAML for all Ruby projects. But I also use ERB and I will explain why a bit later.

HAML is great and I was wrong. I realized I have an aversion towards unreadable code. I did not see myself reading and writing CFML tags for a long time that is why I gave up my job to be a bum (not really). Seriously I also hate Dreamweaver. Why do they create these products? There are always better open source alternatives.

Indenting and Outdenting

  • CSS
  • HAML
  • Rails
  • Ruby
  • SASS
  • Sinatra
  • admin's blog
  • Add new comment
  • Read more
Syndicate content

Recent blog posts

  • HTML5 - Let's all just move forward
  • Using HAML for Rails or Sinatra For Readability and For Sanity
  • How to Learn Rails 2
  • Git All You Can
  • Ruby is for Linux and Mac Users
  • Deploy and Manage Drupal Sites With Git And Capistrano
more

  • @jessecrockett I'm just waiting for a favorable exchange rate ($ to PHP) and I would get a Mac. I still suggest you get a refurbished 1. — 2 years 15 weeks ago
  • http://twitpic.com/ok6l9 - Is it worth it? http://twurl.cc/1tdv — 2 years 15 weeks ago
  • Personality and job success http://twurl.cc/1t9i — 2 years 15 weeks ago
  • Arthur Koestler and Creativity http://twurl.cc/1t3x — 2 years 15 weeks ago
  • @jessecrockett I haven't used Wordpress for a year but you have to use the default theme as the base theme if you're doing something custom. — 2 years 15 weeks ago
  •  
  • 1 of 3
  • ››
more
  • about
  • contact

© 2009. BridgeUtopia.