in haml you can write it as:
%a.dropdown-toggle(href="#" role="button" data-toggle="dropdown" data-target="#")