Slim で任意の属性を付与する

結論

Slim でこう書くと、

.col.s12 foo='bar' hoge='fuga'

こういう HTML が生成されます

<div class="col s12" foo="bar" hoge="fuga">
Powered by はてなブログ