jade&pug
Using File in node
const pug = require('pug');
// Compile the source code
const compiledFunction = pug.compileFile('test.pug');
// Render a set of data in html
console.log(compiledFunction({"name": "Tim"}));<div>
<h1>Ocean's Eleven</h1>
<ul>
<li>Comedy</li>
<li>Thriller</li>
</ul>
<p>Danny Ocean and his eleven accomplices plan to rob
three Las Vegas casinos simultaneously.</p>
</div>Fundamentals
Attributes
Inline Style
JS
Jade also has loops
Interpolation
Mixins
Last updated