github.com/servernoj/jade@v0.0.0-20231225191405-efec98d19db1/testdata/v2/plain-text.jade (about)

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