Skip to content

Commit ae114ce

Browse files
authored
Merge pull request #7942 from segmentio/liquid-docs
Adds link to liquidjs docs, section for whitespace
2 parents 9166469 + 84fe5a7 commit ae114ce

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/connections/destinations/actions.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,10 @@ 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](https://liquidjs.com/tutorials/intro-to-liquid.html){:target="_blank”}. 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 for you to integrate with your event pipeline.
244+
245+
#### Whitespace
246+
By default, Liquid will generate a newline when inputing multi-line templates. To strip these newlines you can use hyphens in the syntax (`{{-`, `-}}`, `{%-`, `-%}`). See the [LiquidJS docs](https://liquidjs.com/tutorials/whitespace-control.html) for more information.
244247

245248
#### Supported liquid tags and filters
246249
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)