class Liquid::Filters::Prepend
- Liquid::Filters::Prepend
- Reference
- Object
Overview
prepend
Concatenates two strings and returns the concatenated value with the main value at the end.
Input {{ "/index.html" | prepend: "/my/fancy/url" }}
Output /my/fancy/index.html
prepend can also be used with variables:
Input {% assign domain_path = "www.example.com" %} {{ "/index.html" | prepend: domain_path }}
Output www.example.com/index.html