@microsoft/fast-element > HTMLTemplateTag

HTMLTemplateTag type

Transforms a template literal string into a ViewTemplate.

Signature:

export type HTMLTemplateTag = (<TSource = any, TParent = any>(strings: TemplateStringsArray, ...values: TemplateValue<TSource, TParent>[]) => ViewTemplate<TSource, TParent>) & {
    partial(html: string): InlineTemplateDirective;
};

References: TemplateValue, ViewTemplate, InlineTemplateDirective

Remarks

The html helper supports interpolation of strings, numbers, binding expressions, other template instances, and Directive instances.