Query
Filter, test, and search collections.
Query
filterReturns the items of a slice whose named field equals the search value.{{ items | filter:'role','admin' }}hasReports whether a collection contains something, and what "contains"
means depends on the shape of the value.{{ tags | has:'featured' }}isReports whether the value equals any one of the given candidates, a compact
way to write an "is this one of these" test in a template.{{ status | is:'active','pending' }}