Sign Up

Filters

Filters are helpers you can call to transform values in your documentation inside expressions.

This is the list of filters supported by Doctave.


capitalize

Capitalizes a string

Usage
"teddy bear" | capitalize  # => "Teddy bear"
capitalize("teddy bear") # => "Teddy bear"
Arguments
PositionDescriptiontyperequired
1String to capitalizestringtrue

append

Appends one string to another.

Usage
"teddy" | append(" bear")  # => "teddy bear"
append("teddy", " bear")  # => "teddy bear"
Arguments
PositionDescriptiontyperequired
1Original stringstringtrue
2String to appendstringtrue

Was this page helpful?