News for hackers. Stuff that matters.
Re:Why use HAML (and SASS) if you already know HTML? by richardburton on Wednesday February 03, 2010 @05:32AM (#1097459)
I've only been using HAML & SASS for around a month and I'm by no means an expert. I've found that using mixins saves me a lot of time. At the top of my stylesheets I lay out bits that I repeat a lot such as:

  =rounded-corners(!amount)
    border-radius=         !amount
    -moz-border-radius=    !amount
    -webkit-border-radius= !amount
And then add them into the UI:

  .curvybox
    +rounded-corners(7px)

There are no comments on this comment yet.