In JavaScript (ES6), you can use template literals (``) to create multiline strings as shown in the following example:
const html = `
<div>
<p>Raku is <b>ofun</b>.</p>
</div>
`
What's the Raku equivalent of this?
In JavaScript (ES6), you can use template literals (``) to create multiline strings as shown in the following example:
const html = `
<div>
<p>Raku is <b>ofun</b>.</p>
</div>
`
What's the Raku equivalent of this?
Copyright © 2021 Jogjafile Inc.
works fine in Raku.
However, you probably want to use a so-called heredoc:
omits the first newline but is otherwise the exact equivalent. If you want to interpolate variables, you can change
qtoqq:For way more than you probably want to know about quoting, see Quoting Constructs