Skip to content

Commit ba1e21e

Browse files
Update variable-modifiers.md
1 parent 486b237 commit ba1e21e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/templates/variable-modifiers.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,11 @@ NOTE: **Note:** Some add-ons and components may have modifiers not listed here.
2424

2525
## Modifiers syntax
2626

27-
The modifiers are being applied by adding modifier name after variable name, separated by semicolon, e.g. `var_name:trim`.
27+
The modifiers are being applied by adding the modifier name after the variable name, separated by a semicolon, e.g. `var_name:trim`.
2828

29-
It is possible to apply several modifiers at the same time by chaing those, e.g. `var_name:trim:url_encode`. The modifiers would be applied left to right (so in this case, the variable's content will first be trimmed and then URL-encoded).
29+
It is possible to apply several modifiers at the same time by chaining those, e.g. `var_name:trim:url_encode`. The modifiers would be applied left to right, so in this case the variable's content will first be trimmed and then URL-encoded.
3030

31-
When applying several modifiers, there could be conflict in parameter names. To avoid that, the parameters could be prefixed with modifier name followed by semicolon. E.g. `{excerpt:limit characters='20'}` could be written as `{excerpt:limit limit:characters='20'}`. This allows writing constructions such as `{excerpt:limit:trim limit:characters='20' trim:characters='\n\r'}`. Prefixed parameter has higher precedence over non-prefixed one.
31+
To avoid conflicts in parameter names when applying several modifiers, the parameters can be prefixed with the modifier name followed by semicolon. E.g. `{excerpt:limit characters='20'}` could be written as `{excerpt:limit limit:characters='20'}`. This allows writing constructions such as `{excerpt:limit:trim limit:characters='20' trim:characters='\n\r'}`. A prefixed parameter has a higher precedence than a non-prefixed parameter.
3232

3333
## Modifiers
3434

0 commit comments

Comments
 (0)