mirror of
https://github.com/kemko/liquid.git
synced 2026-01-06 18:25:41 +03:00
710 B
710 B
title, description
| title | description |
|---|---|
| prepend | Liquid filter that prepends a string to the beginning of another string. |
Adds the specified string to the beginning of another string.
Input
```liquid {% raw %} {{ "apples, oranges, and bananas" | prepend: "Some fruit: " }} {% endraw %} ```Output
```text {{ "apples, oranges, and bananas" | prepend: "Some fruit: " }} ```prepend can also be used with variables:
Input
```liquid {% raw %} {% assign url = "example.com" %} {{ "/index.html" | prepend: url }} {% endraw %} ```Output
```text {% assign url = "example.com" %} {{ "/index.html" | prepend: url }} ```