handlebars-lang / handlebars.js

Minimal templating on steroids.
http://handlebarsjs.com
MIT License
17.96k stars 2.04k forks source link

Implement map helper function #1936

Closed believelody closed 1 year ago

believelody commented 1 year ago

Hi guys, I'm trying to implement a kind of map helper similar to javascript map function. So my question is how can i pass a function to an helper ? Ideally to have something like: (map array double) where double is the function which will take each array's element.