Search code examples
pug

Jade -- nested html tag in one line


According to Jade documentation, I can write:

div
    ul
         li.active one
         li two
         li three

I am considering something like this:

div - ul
    li.active one
    li two
    li three

How can I put multiple html tags in one line? I did not find a way in the documentation.

Thanks in advance. :)


Solution

  • div: ul
        li.active one
        li two
        li three
    

    https://pugjs.org/language/tags.html

    enter image description here