Files
liquid/_filters/append.md
2019-07-28 16:27:13 -04:00

661 B

title, description
title description
append Liquid filter that appends a string to another string.

Concatenates two strings and returns the concatenated value.

Input

```liquid {% raw %} {{ "/my/fancy/url" | append: ".html" }} {% endraw %} ```

Output

```text {{ "/my/fancy/url" | append: ".html" }} ```

append can also be used with variables:

Input

```liquid {% raw %} {% assign filename = "/index.html" %} {{ "website.com" | append: filename }} {% endraw %} ```

Output

```text {% assign filename = "/index.html" %} {{ "website.com" | append: filename }} ```