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
| Position | Description | type | required |
|---|---|---|---|
| 1 | String to capitalize | string | true |
append
Appends one string to another.
Usage
"teddy" | append(" bear") # => "teddy bear"append("teddy", " bear") # => "teddy bear"Arguments
| Position | Description | type | required |
|---|---|---|---|
| 1 | Original string | string | true |
| 2 | String to append | string | true |