Any text at the beginning of a line—by default—is interpreted as an HTML tag. The main advantage of Jade is that this text renders both closing and opening tags for the HTML element, as well as the <>>symbols. Therefore, we save many keystrokes as developers writing in Jade!
The text following a tag and a space (e.g.,tag
Body div h1 Little Node.js p The only book most people will ever need. div footer © Apress
The output of the template above will be:
<body> <div> <h1>Little Node.js</h1> <p>The only book most people will ever need.</p> </div> <div> <footer>© Apress</footer> </div> </body>