wrap
Wrap wraps the value in a map under the given key.
Wrap wraps the value in a map under the given key.
Input
any
Parameters
| # | Type | Required |
|---|---|---|
| 0 | string | yes |
Returns
map
Examples
{{ name | wrap:'user' }}
{{ items | wrap:'data' }}How is this guide?
Wrap wraps the value in a map under the given key.
Wrap wraps the value in a map under the given key.
any
| # | Type | Required |
|---|---|---|
| 0 | string | yes |
map
{{ name | wrap:'user' }}
{{ items | wrap:'data' }}How is this guide?