Skip to content

Bars Specification 0.1.0 — Transform: append

Category: string · Since: 0.1.0

Concatenates a value onto the end of the input.

Coerces both the input and value to strings (the same rule {{ }} interpolation uses) and concatenates value onto the end of the input.

Input coercion: string

Arguments

Name Type Optional Default
value string no

Arity: 1–1

Worked examples

{{ greeting | append: "!" }}

hello!
{{ greeting | upcase | append: "!" }}

HELLO!

Full fixture: transforms/transform-append.json