Haml で if ○○だった時だけ classを付ける

https://gist.github.com/taea/5946682

エスケープが必要なのだね・・・なぜか思いつかなかった。