doctype html html(lang="en") head title= pageTitle script(type='text/javascript'). if (foo) bar(1 + 5); body h1 Pug - node template engine #container.col if youAreUsingPug p You are amazing else p Get on it! p. Pug is a terse and simple templating language with a strong focus on performance and powerful features.
渲染出来实际含义为
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
<!DOCTYPE html> <htmllang="en"> <head> <title>Pug</title> <scripttype="text/javascript"> if (foo) bar(1 + 5); </script> </head> <body> <h1>Pug - node template engine</h1> <divid="container"class="col"> <p>You are amazing</p> <p> Pug is a terse and simple templating language with a strong focus on performance and powerful features. </p> </div> </body> </html>