truncate
x | truncate(length=, end=?)Tera’s plain-text truncate to length characters plus end.
Arguments#
| Argument | Type | Required |
|---|---|---|
length | int | yes |
end | string | no |
Details#
- Kind: Filter, implemented by a Tera built-in.
- Available in: every kind of template: layouts, partials, shortcodes and render hooks.
- Output: escaped like any value, unless marked
safe.