Skip to content

Commit 6996c94

Browse files
committed
Adds link to liquidjs docs, section for whitespace
1 parent dd6eebc commit 6996c94

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/connections/destinations/actions.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,12 @@ You can't concatenate event variables and plain text with static values and func
240240
![Mapping UI showing two concatenated fields: "+1 phone" and "context.page.url context.page.path"](images/mapping-concatenation.png)
241241

242242
### Liquid syntax
243-
The liquid syntax function enables you to transform event data with fine-grain control before it reaches cloud-mode destinations using the LiquidJS templating language. Use Liquid templates to clean, format, or conditionally transform data such as user properties, timestamps, or event metadata to meet the requirements of your downstream tools. Liquid templates are applied in the **Mappings** tab of your Segment workspace to enable you to integrate with your event pipeline.
243+
The liquid syntax function enables you to transform event data with fine-grain control before it reaches cloud-mode destinations using the LiquidJS templating language. Use Liquid templates to clean, format, or conditionally transform data such as user properties, timestamps, or event metadata to meet the requirements of your downstream tools. Liquid templates are applied in the **Mappings** tab of your Segment workspace to enable you to integrate with your event pipeline.
244+
245+
Segment uses liquidJS to power this functionality. For full documentation please see the [liquidjs docs](https://liquidjs.com/tutorials/intro-to-liquid.html).
246+
247+
#### Whitespace
248+
By default liquid will generate a newline when inputing multi-line templates. To strip these newlines you may use hyphens in the syntax (`{{-`, `-}}`, `{%-`, `-%}`). See the liquidjs docs [here](https://liquidjs.com/tutorials/whitespace-control.html) for more information.
244249

245250
#### Supported liquid tags and filters
246251
Segment supports the following LiquidJS tags and filters for mappings. Segment selected these to ensure performance, security, and compatibility with real-time event processing. Segment disabled unsupported tags and filters to prevent performance degradation or security risks.

0 commit comments

Comments
 (0)