mirror of
https://github.com/jwetzell/showbridge-docs.git
synced 2026-09-02 02:38:58 +00:00
format
This commit is contained in:
@@ -1,19 +1,22 @@
|
||||
---
|
||||
title: Create String
|
||||
sidebar:
|
||||
label: Create
|
||||
order: 3
|
||||
label: Create
|
||||
order: 3
|
||||
---
|
||||
|
||||
The `string.create` processor creates a string based on the provided template. This processor will return an error if there is an issue executing the template. The template property is just a [Go template](https://pkg.go.dev/text/template) that will be evaluated with the incoming message provided as an environment.
|
||||
|
||||
- **type**: `string.create`
|
||||
- **params**:
|
||||
- **template**: string template that will have the incoming message as the context
|
||||
- **template**: string template that will have the incoming message as the context
|
||||
|
||||
### Example
|
||||
|
||||
This would create a string using the `Address` property of the incoming message like and OSC message
|
||||
|
||||
```yaml
|
||||
- type: string.create
|
||||
params:
|
||||
params:
|
||||
template: "{{.Address}}
|
||||
```
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user