2
<ul class="dropdown-menu">
  <li>
    <a href="javascript:void(0)">
      <i class="ti-user m-r-5"/>
      Profile
    </a>
  </li>
</ul>

I don't know how to put i and "Profile" in a. Please help me!

RockerFlower
  • 727
  • 2
  • 10
  • 28

2 Answers2

1

I found that the inline tags can solve it!

ul(class='dropdown-menu')
  li #[a(href="javascript:void(0)") #[i(class=['ti-user', 'm-r-5'])] Profile]
RockerFlower
  • 727
  • 2
  • 10
  • 28
1

You can use online service to convert HTML to Jade, for example: http://html2jade.org/

Here is an answer:

html
  body
    ul.dropdown-menu
      li
        a(href='javascript:void(0)')
          i.ti-user.m-r-5
            | Profile
sergiy.dragunov
  • 780
  • 6
  • 9