2013-07-08から1日間の記事一覧

何度もダブルクオートを\でエスケープするのめんどい時(Ruby)

https://gist.github.com/taea/5916486 リテラル便利。 %Q{ } %Q! ! %Q( ) どれでもいいらしいの http://doc.ruby-lang.org/ja/1.9.3/doc/spec=2fliteral.html#percent

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

https://gist.github.com/taea/5946682 エスケープが必要なのだね・・・なぜか思いつかなかった。