prepend - Liquid Filter Reference - 0.10.11
| Filter Name | prepend |
| Group | Text |
| Version | 0.10.11 |
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.10.11
Back to Documentation