Displaying data from multiple collections at once?

I want to do a {{#each }} with a collection of say messages, and every time a new day starts, I want a separator. How would I do something like that?

I don’t see what your problem has to do with multiple collections, but to give you an answer.
Create an helper that generate the days, let’s say getDays.
Then another helper that accept a date a as parameter and returns the message from this day, let say getMessagesForDay
In you template, you then nest the each (each getDays / each getMessagesForDay) with the separators added at the right place.

1 Like