TemplateVariable
Overload 1
Section titled “Overload 1”import { TemplateVariable } from "@alloy-js/core";
<TemplateVariable name="string"> {children}</TemplateVariable>import { TemplateVariable } from "@alloy-js/core/stc";
TemplateVariable({ name: string }).children(children)| children | ChildrenThe value of the variable. |
| name | stringThe name of the variable. |
Overload 2
Section titled “Overload 2”import { TemplateVariable } from "@alloy-js/core";
<TemplateVariable name="string" value="string" />import { TemplateVariable } from "@alloy-js/core/stc";
TemplateVariable({ name: string, value: string }).children(children)| name | stringThe name of the variable. |
| value | stringThe value of the variable. |