Solution
<button bs-select>
is actually equivalent to <button bs-select="bs-select">
, but <button bs-select="">
would be fine as well.
To get this in slim, try the following:
button[bs-select]
or
button bs-select=""
Reference:
http://www.w3.org/html/wg/drafts/html/master/infrastructure.html#boolean-attributes
Dealing with parenthesis from angular in slim
To mark attributes, different kinds of parenthesis are allowed by default: (), [], {} or none
It makes sense to remove curly brackets, because it collides with the angular syntax in:
h2 {{article.title}}
Here, slim will interpret {article.title}
as an attribute and will afaik throw an error.
So better configure slim like this:
:attr_delims => {'(' => ')', '[' => ']'}, # removed '{' => '}' from default