jinja2.runtime.to_string.capitalize

to_string.capitalize() → unicode

Return a capitalized version of S, i.e. make the first character have upper case and the rest lower case.