Skip to content

Commit a717306

Browse files
authored
minor rewording + moving this section up
1 parent 2d93554 commit a717306

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

src/connections/destinations/actions.md

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -245,6 +245,14 @@ The Liquid syntax function enables you to transform event data with fine-grain c
245245
#### Whitespace
246246
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.
247247

248+
#### Liquid template limits
249+
250+
Segment enforces the following limits on liquid templates to protect performance and security:
251+
252+
- Maximum template length: 1,000 characters per function
253+
- Maximum evaluation time: 500 ms
254+
- Maximum memory usage: 100 MB
255+
248256
#### Supported liquid tags and filters
249257
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.
250258

@@ -390,12 +398,6 @@ Explanation:
390398
* The `prepend: "+"` filter adds the `+` prefix.
391399
* The `default` filter outputs an empty string if the phone number is missing.
392400

393-
#### Template Limitations
394-
The following limitations are in place for security and performance reasons:
395-
* Templates are limited to 1000 characters per function.
396-
* Template evaluation is limited to 500 ms.
397-
* Template memory usage is limited to 100MB.
398-
399401
## Conditions
400402

401403
> info ""

0 commit comments

Comments
 (0)