Adds a function to each "Trusted Type" to create an instance from a JavaScript template literal (but not from a dynamically computed string). This makes it easy to mark literals in the JavaScript source text as "trusted". Example: const html = TrustedHTML.fromLiteral`<p>Literal Text</p>`;
When deploying Trusted Types, developers found it cumbersome to require a policy and to have to "wrap" every single literal they use in a given program. Building an API that makes it easy to accept literals embedded in the source code - but not dynamically created strings - would make TT easier to deploy. Example: const html = TrustedHTML.fromLiteral`<p>Literal Text</p>`;