capitalize
将字符串首字母转为大写。
输入
{{ "title" | capitalize }}
输出
Title
capitalize
only capitalizes the first character of a string, so later words are not affected:
输入
{{ "my great title" | capitalize }}
输出
My great title
将字符串首字母转为大写。
输入
{{ "title" | capitalize }}
输出
Title
capitalize
only capitalizes the first character of a string, so later words are not affected:
输入
{{ "my great title" | capitalize }}
输出
My great title