To convert HTML to jade, use this jade converter .
When I enter the following HTML,
<!doctype html> <html class="no-js"> <head> <meta charset="utf-8"> </head> <body> <div class="container"> <div class="header"> <ul class="nav nav-pills pull-right"> <li class="active"><a href="#">Home</a></li> <li><a href="#">About</a></li> <li><a href="#">Contact</a></li> </ul> </div> </div> </body> </html>
The output is as follows:
doctype html.no-js head meta(charset='utf-8') | body .container .header ul.nav.nav-pills.pull-right li.active a(href='#') Home | li a(href='#') About | li a(href='#') Contact
What is the purpose of vertical bars ( | )?
pug
Stefan
source share