How to describe multiple tags in one line in jade template?

466 Views Asked by At

I like to use jade template in express project. And sometimes I face with these problems. For example,

li: b PHONE
li +7 (914) 3164890

Can I put these codes in one line? Is it possible in jade template? If not possible, which html preprocessor do I have to use for this type of work?

1

There are 1 best solutions below

4
gandreadis On

For these kind of problems, you always have the option of falling back on standard HTML syntax. Pug accepts both HTML and Pug syntax in its template files, so <li>...</li><li>...</li> should be valid Pug code, as well.