Implement collection helpers
A couple of functions are related to collections rather than templates, using the collection helpers package we can re-use these functions over multiple templates and still provide some sort of structure.
https://github.com/dburles/meteor-collection-helpers
That's a nice package! If you look at the code, it's quit short (18 lines of code) and quite brilliant. What would be some use cases for us?
- playlists
- automatically join a playlist with authors and songs?
- helper for extracting all contributing users?
- helper for users that are currently playing a song in that playlist?
Yes playlist helpers like that would also help structuring :)
For users:
- isOwnerOf(playlist)
- isOnline
- isFollowing(user)
Things like that ;)
2014-10-05 22:37 GMT+02:00 Ramon Wijnands [email protected]:
That's a nice package! If you look at the code https://github.com/dburles/meteor-collection-helpers/blob/master/collection-helpers.js#L16, it's quit short (18 lines of code) and quite brilliant. What would be some use cases for us?
- playlists
- automatically join a playlist with authors and songs?
- helper for extracting all contributing users?
- helper for users that are currently playing a song in that playlist?
— Reply to this email directly or view it on GitHub https://github.com/Rayman/fusic-meteor/issues/87#issuecomment-57951299.