I think this is a hot topic right now.
There are a few schools of thought on how to load data, and pass data in Meteor and within it’s templates.
I’m trying to compile a list of strategies and maybe do a blog post to compare them.
Some strategies I’ve identified:
- Wrap each child template in a data template to separate data from ui.
- Load data at router level and pass down (mostly an anti-pattern now?)
- Load data at template and pass down to child templates left to right (react-like)
- Use session object between shared templates.
Any others? If you have code samples please share