[io.file.mixin]
io.file.mixin is a slot in the io namespace, in Hyperlambda, the language of Magic Cloud. Loads a static file, applies same-named Hyperlambda codebehind, and returns the mixed result.
- Value (
file-path), required: Path to the static file to mix with its same-named .hl codebehind file - Returns: Resolves to the mixed file content in value and any codebehind-produced child nodes
Arguments
Required arguments come first, then the optional ones in the order they are declared.
| Argument | Type | Required | Description |
|---|---|---|---|
| any node name | object | no | Optional argument available to codebehind lambda loaded for the mixed file. Can be repeated. |
Guide: How to use [io.file.mixin]
JSON declaration
This is the complete declaration of io.file.mixin, as the running system describes it. It is also published as slot.json.
JSON declaration
{
"name": "io.file.mixin",
"description": "Loads a static file, applies same-named Hyperlambda codebehind, and returns the mixed result",
"signature": {
"input": {
"kind": "file-path",
"description": "Path to the static file to mix with its same-named .hl codebehind file",
"required": true,
"mode": "ValueOrExpression"
},
"children": {
"*": {
"type": "object",
"kind": "value",
"description": "Optional argument available to codebehind lambda loaded for the mixed file",
"required": false,
"mode": "ValueOrExpression",
"cardinality": "ZeroOrMore",
"role": "Arguments",
"projection": "ArgumentBag"
}
},
"output": {
"mode": "Both",
"kind": "mixed-file-content,text",
"description": "Resolves to the mixed file content in value and any codebehind-produced child nodes"
}
}
}
← io.file.load.binary |
all io.* slots |
io.file.move → |