Skip to content

Instantly share code, notes, and snippets.

@wicky-andrian
Created November 18, 2015 14:55
Show Gist options
  • Select an option

  • Save wicky-andrian/29e68f7df52324975488 to your computer and use it in GitHub Desktop.

Select an option

Save wicky-andrian/29e68f7df52324975488 to your computer and use it in GitHub Desktop.
Html output dan Haml code
### Haml input
.nav-collapse.collapse
%ul.nav
%li.active
%a{:href => "#"} Home
%li.dropdown
%a.dropdown-toggle{:href => "#", "role" => "button", "data-toggle" => "dropdown", "data-target" => "#"}
The dropdown item
%b.caret
%ul.dropdown-menu{"role" => "menu"}
%li
%a{:href => "#link1"}
Dropdown #1
%a{:href => "#link2"}
Dropdown #2
%a{:href => "#link3"}
Dropdown #3
%a{:href => "#link4"}
Dropdown #4
%li
%a{:href => "#contact"} Contact
### Html ouput
<ul class="nav">
<li class="active">
<a href="#">Home</a>
</li>
<li class="dropdown">
<a role="button" href="#" data-toggle="dropdown" data-target="#" class="dropdown-toggle">
The dropdown item
<b class="caret"></b>
</a>
<ul role="menu" class="dropdown-menu">
<li>
<a href="#link1">
Dropdown #1
</a>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment