import {flatMapHelper} from 'cimpress-handlebars-helpers';
handlebars.registerHelper("flatMap", flatMapHelper);
-
array
- an array to iterate over -
path
- a path that identifies the element to take
import {filterByValuesHelper} from 'cimpress-handlebars-helpers';
handlebars.registerHelper("filterByValues", filterByValuesHelper);
-
collection
- an array to iterate over -
element
- element to use for filtering -
values
- filter the array based on these values