Files
liquid/filters/append.md
2016-11-08 16:23:33 -05: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 }} ```