class Liquid::Filters::Capitalize

Overview

capitalize

Makes the first character of a string capitalized.

Input {{ "title" | capitalize }}

Output Title

capitalize only capitalizes the first character of the string, so later words are not affected:

Input {{ "my great title" | capitalize }}

Output My great title

Extended Modules

Defined in:

liquid/filters.cr

Class Method Summary

Class Method Detail

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

[View source]