HAML – parameter with dash

HAML Syntax for the HTML5 Data Field:

%div{ :data => {:id => '555'} }

Now, I started messing around, and it looks like this only works with “data” — other tags need to be:

%div{ "star-datas" => "hello!" }

Your example:

%body{:data => { :spy => 'abcd'}}

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)