Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement collection helpers #87

Open
pepf opened this issue Oct 4, 2014 · 2 comments
Open

Implement collection helpers #87

pepf opened this issue Oct 4, 2014 · 2 comments
Milestone

Comments

@pepf
Copy link
Contributor

pepf commented Oct 4, 2014

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

@Rayman Rayman added this to the v0.3 milestone Oct 5, 2014
@Rayman
Copy link
Owner

Rayman commented Oct 5, 2014

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?

@pepf
Copy link
Contributor Author

pepf commented Oct 6, 2014

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
#87 (comment).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants