• Profile
  • I don't know how to put i and "Profi" />
  • Profile
  • I don't know how to put i and "Profi" />
  • Profile
  • I don't know how to put i and "Profi"/>

    How can I do this in Jade (pug)?

    991 Views Asked by At
    <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!

    2

    There are 2 best solutions below

    1
    sergiy.dragunov On BEST ANSWER

    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
    
    0
    RockerFlower On

    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]