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 | Children The value of the variable. |
name | string The 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 | string The name of the variable. |
value | string The value of the variable. |