prepend - Liquid Filter Reference - 1.0.0

Filter Name prepend
Group Text
Version 1.0.0

Description

Adds the specified string to the beginning of another string.

Examples

{{ "apples, oranges, and bananas" | prepend: "Some fruit: " }}
Some fruit: apples, oranges, and bananas
prepend can also accept a variable as its argument:
{% assign url = "example.com" %}
{{ "/index.html" | prepend: url }}
example.com/index.html

Back to Filter List

Back to Liquid Reference for 1.0.0

 

 
Back to Documentation