Skip to content

Bars Specification 0.1.0 — Transform: prepend

Category: string · Since: 0.1.0

Concatenates a value onto the start of the input.

Coerces both the input and value to strings and concatenates value onto the start of the input.

Input coercion: string

Arguments

Name Type Optional Default
value string no

Arity: 1–1

Worked examples

{{ word | prepend: "hello " }}

hello world
{{ word | upcase | prepend: "say " }}

say HI

Full fixture: transforms/transform-prepend.json