nikhilbobb/Meteor-session-bind

Consider moving the sessionGet helper to session-bind.js

Closed this issue · 0 comments

Since the simple sessionGet helper defined in session-bind_tests.js will be used profusely whenever the bound session variable needs to be retrieved, how about defining it as a general template helper within session-bind.js (similar to how the bindSession helper is defined)?

This way, you won't have to tediously define a new sessionGet helper for each new template.

Edit: Realised that Session.Get would have to be called from templates other than the template bound to the session variable anyway, so this is not that useful. Please close this issue.