I am trying to implement a file browser in Meteor. Users can go through some network folders and add them to the collection for further processing.
This is my simple tem
I am not sure it is a good idea using a Meteor method in a template helper.
A simple solution would be to use an intermediate ReactiveVar
. When your template is created, make your method call, and update the ReactiveVar
in the callback. Then in your folder
helper, simply return the ReactiveVar
content.
Meteor will update reactively when your method asynchronously returns.