Created
November 18, 2015 14:55
-
-
Save wicky-andrian/29e68f7df52324975488 to your computer and use it in GitHub Desktop.
Html output dan Haml code
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ### 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