github.com/servernoj/jade@v0.0.0-20231225191405-efec98d19db1/testdata/v2/plain-text.tpl (about) 1 <p>This is plain old <em>text</em> content. 2 </p> 3 <html> 4 <body> 5 <p>Indenting the body tag here would make no difference.</p> 6 <p>HTML itself isn't whitespace-sensitive.</p> 7 </body> 8 </html> 9 <p>The pipe always goes at the beginning of its own line,not counting indentation.</p> 10 <script> 11 if (usingPug) 12 console.log('you are awesome') 13 else 14 console.log('use pug') 15 </script> 16 <div> 17 <p>This text belongs to the paragraph tag.</p> 18 <br/> 19 This text belongs to the div tag. 20 </div> 21 You put the em<em>pha</em>sis on the wrong syl<em>la</em>ble. 22 <a>...sentence ending with a link</a> 23 .Don't 24 <button id="self-destruct">touch</button> 25 me! 26 <p> 27 Using regular tags can help keep your lines short, 28 but interpolated tags may be easier to <em>visualize</em> whether the tags and text are whitespace-separated. 29 </p> 30 Hey, check out 31 <a href="http://example.biz/kitteh.png">this picture</a> 32 of my cat! 33 <script> 34 const newWS = (url) => { 35 let socket = new WebSocket(url) 36 socket.onopen = _ => console.log("Open") 37 socket.onmessage = (event) => console.log(`Message: ${event.data}`) 38 socket.onerror = (error) => console.error(`Error: ${error.message}`) 39 socket.onclose = (event) => { 40 if (event.wasClean) console.log(`Clean; code: ${event.code} ${event.reason}`) 41 else console.log(`Err; code: ${event.code} ${event.reason}`) 42 } 43 return socket 44 } 45 </script>