From 6996c94a48f8147399bfc057dfe0703735b5fc49 Mon Sep 17 00:00:00 2001 From: Nick Aguilar Date: Fri, 12 Sep 2025 11:36:22 -0700 Subject: [PATCH 1/2] Adds link to liquidjs docs, section for whitespace --- src/connections/destinations/actions.md | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/connections/destinations/actions.md b/src/connections/destinations/actions.md index 919bfe915e..c4a9d31135 100644 --- a/src/connections/destinations/actions.md +++ b/src/connections/destinations/actions.md @@ -240,7 +240,12 @@ You can't concatenate event variables and plain text with static values and func ![Mapping UI showing two concatenated fields: "+1 phone" and "context.page.url context.page.path"](images/mapping-concatenation.png) ### Liquid syntax -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. +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. + +Segment uses liquidJS to power this functionality. For full documentation please see the [liquidjs docs](https://liquidjs.com/tutorials/intro-to-liquid.html). + +#### Whitespace +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. #### Supported liquid tags and filters 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. From 84fe5a7126608c4e157e6fae97eadefd314132dd Mon Sep 17 00:00:00 2001 From: rchinn1 Date: Tue, 16 Sep 2025 10:14:41 -0700 Subject: [PATCH 2/2] minor edits --- src/connections/destinations/actions.md | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/connections/destinations/actions.md b/src/connections/destinations/actions.md index c4a9d31135..bee1f32fcc 100644 --- a/src/connections/destinations/actions.md +++ b/src/connections/destinations/actions.md @@ -240,12 +240,10 @@ You can't concatenate event variables and plain text with static values and func ![Mapping UI showing two concatenated fields: "+1 phone" and "context.page.url context.page.path"](images/mapping-concatenation.png) ### Liquid syntax -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. - -Segment uses liquidJS to power this functionality. For full documentation please see the [liquidjs docs](https://liquidjs.com/tutorials/intro-to-liquid.html). +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. #### Whitespace -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. +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. #### Supported liquid tags and filters 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.