Skip to main content

capitalize

Function capitalize 

Source
pub fn capitalize(value: StringInput<'_>) -> Value
Expand description

Convert the string with all its characters lowercased apart from the first char which is uppercased.

Like in Python, the first character is converted to its titlecase form, so dž becomes Dž and ß becomes Ss.

<h1>{{ chapter.title|capitalize }}</h1>