Create an HTMLTemplateElement from the provided HTML string.
These HTML Templates can be used as standard HTML Templates, or as the foundation for a Component or standalone Template
Interpolates values in the template string to provide helpers for composing templates:
This template string
const $template = html`<div :class="*classnames"> ${"@content"}</div>` Copy
const $template = html`<div :class="*classnames"> ${"@content"}</div>`
Produces this template element (portrayed as HTML)
<template> <div :class="*classnames"> <span ::swap="@content"></span> </div></template> Copy
<template> <div :class="*classnames"> <span ::swap="@content"></span> </div></template>
Create an HTMLTemplateElement from the provided HTML string.
These HTML Templates can be used as standard HTML Templates, or as the foundation for a Component or standalone Template
Interpolates values in the template string to provide helpers for composing templates: