Knap.md
LogicFiltersVariablesAPIGitHub ↗

Guide

VariablesLogicFilters

Reference

API

Project

GitHub ↗npm ↗

capitalize

Uppercase the first character and lowercase the rest.

Filters/capitalize

Syntax

{{ value | capitalize }}

Example

01

Basic usage

InputTS
1{2  "title": "hELLO wORLD"3}
TemplateKNAP
1{{ title | capitalize }}
OutputKNAP
1Hello world

Related filters

lowerConvert text to lowercase.titleConvert text to Title Case.upperConvert text to uppercase.
Previous← camelNextdecode_uri →
Knap is open source under the MIT license.View source ↗

On this page

SyntaxExamplesRelated filters
capitalize filter — Knap