mirror of
https://github.com/kemko/liquid.git
synced 2026-01-01 15:55:40 +03:00
671 B
671 B
title, description
| title | description |
|---|---|
| append | Liquid filter that appends a string to another string. |
Adds the specified string to the end of another string.
Input
```liquid {%- raw -%} {{ "/my/fancy/url" | append: ".html" }} {% endraw %} ```Output
```text {{ "/my/fancy/url" | append: ".html" }} ```append can also accept a variable as its argument.
Input
```liquid {%- raw -%} {% assign filename = "/index.html" %} {{ "website.com" | append: filename }} {% endraw %} ```Output
```text {% assign filename = "/index.html" %} {{ "website.com" | append: filename }} ```