How do I write a custom HtmlBars helper and call the each helper in it?


I try to create a custom helper and I wonder how one does call other helpers from the custom helpers. In particular, I am interested in calling the each helper. Here is where I’v got so far: JS Bin - Collaborative JavaScript Debugging

The error that happens: “Uncaught Error: Assertion Failed: If you pass more than one argument to the each helper, it must be in the form #each foo in bar”. So I assume that I need to prepare the original arguments before passing them to the each helper but I don’t know how. Any suggestions? Am I going in the right direction with this at all?