Files
liquid/filters/prepend.md
2016-03-15 19:36:29 -04:00

497 B

title
title
prepend

Adds the specified string to the beginning of another string.

{% raw %}
{{ "apples, oranges, and bananas" | prepend: "Some fruit: " }}
{% endraw %}
{{ "apples, oranges, and bananas" | prepend: "Some fruit: " }}

You can also prepend variables:

{% raw %}
{% assign url = "liquidmarkup.com" %}

{{ "/index.html" | prepend: url }}
{% endraw %}
{% assign url = "liquidmarkup.com" %}

{{ "/index.html" | prepend: url }}