[strings.mixin]
strings.mixin is a slot in the strings namespace, in Hyperlambda, the language of Magic Cloud. Applies string interpolation from child expressions.
- Value (
mixin-template,text), required: Template text to interpolate - Returns: Resolves to the rendered string after applying codebehind and expressions
Arguments
Required arguments come first, then the optional ones in the order they are declared.
| Argument | Type | Required | Description |
|---|---|---|---|
[strip] |
bool | no | Whether to strip embedded Hyperlambda instead of executing it. Default: false. |
| any node name | string | no | Argument passed to embedded Hyperlambda snippets invoked from the template. Can be repeated. |
Guide: How to use [strings.mixin]
JSON declaration
This is the complete declaration of strings.mixin, as the running system describes it. It is also published as slot.json.
JSON declaration
{
"name": "strings.mixin",
"description": "Applies string interpolation from child expressions",
"signature": {
"input": {
"kind": "mixin-template,text",
"description": "Template text to interpolate",
"required": true,
"mode": "ValueOrExpression"
},
"children": {
"strip": {
"type": "bool",
"description": "Whether to strip embedded Hyperlambda instead of executing it",
"required": false,
"mode": "ValueOrExpression",
"cardinality": "ZeroOrOne",
"default": "false",
"role": "Option",
"projection": "Value"
},
"*": {
"type": "string",
"kind": "string-values",
"description": "Argument passed to embedded Hyperlambda snippets invoked from the template",
"required": false,
"mode": "ValueOrExpression",
"cardinality": "ZeroOrMore",
"role": "Arguments",
"projection": "ArgumentBag"
}
},
"output": {
"mode": "Value",
"kind": "text",
"description": "Resolves to the rendered string after applying codebehind and expressions"
}
}
}
← strings.matches |
all strings.* slots |
strings.regex-replace → |