Liquid Filter Reference for prepend - v0.9.5
Filter Name | prepend |
Group | Text |
Version | 0.9.5 |
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 Liquid Reference for 0.9.5
Back to Documentation