fusic-meteor icon indicating copy to clipboard operation
fusic-meteor copied to clipboard

Implement collection helpers

Open pepf opened this issue 11 years ago • 2 comments

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

pepf avatar Oct 04 '14 21:10 pepf

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?

Rayman avatar Oct 05 '14 20:10 Rayman

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.

pepf avatar Oct 06 '14 07:10 pepf