class Liquid::Filters::Prepend

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

Extended Modules

Defined in:

liquid/filters/prepend.cr

Class Method Summary

Class Method Detail

def self.filter(data : Any, args : Array(Any) | Nil = nil) : Any #

[View source]