HAML - how do I create this line of HTML
haml
Solution
%a.btn.btn-navbar{"data-target" => ".nav-collapse", "data-toggle" => "collapse"}
OR Else
%a.btn.btn-navbar{:data => {:toggle => 'collapse', :target => '.nav-collapse'}}
Problem
This is kind of a complicated line of HTML to create in HAML: ``` <a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse"> ``` I am not sure how to do that. Any idea? I am only able to do this: ``` %a.btn %span.icon-bar Hello ``` but not sure how to do the complex stuff. Thanks!