Jade Tags ?

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 ) is parsed as the inner HTML (i.e., content inside the element). For example, if we have the following Jade code:

    h1 Little Node.js
    p The only book most people will ever need.
    footer &copy; Apress

The output of the template above will be:

    <h1>Little Node.js</h1>
    <p>The only book most people will ever need.</p>
    <footer>&copy; Apress</footer>

My Name is Dileep Singh, Noder, Javascript Lover & NoSql Developer, Fitness Freak, Love to travel new places, learning photography & Music Manic ♯ ♩ ♬

Posted in Jade Tagged with: