data:document:patch
Applies syntax-aware replacements without rebuilding the document.
Options
| Name | Type | Description |
|---|---|---|
content | any | Is the unchanged string or byte slice used to create every locator. |
content_base64 | string | Carries the exact source bytes produced by document selection. |
replacements | any | Carry source-bound locators and their new decoded values. |
Outputs
| Name | Type | Description |
|---|---|---|
body | []byte | |
content | string | |
content_base64 | string | |
encoding | Encoding |
Example
name: Patch document values
actions:
- name: patched
component: data:document:patch
vars:
content_base64: "{{ var.document_base64 }}"
replacements: "{{ var.replacements }}"
outputs:
content_base64: "{{ patched.content_base64 }}"