I want to output the Meteor Session key value pairs in a Meteor handlebars template.
http://docs.meteor.com/#session
I have tried returning Session and Session.keys from my Template.name.name js file and then #each in the handlebars to no avail.
I have tried the following to iterate over the Session keys and have tried return an object and it did not work.
I tried the following to iterate over the Session keys and returning a JSON list of data that looks like this.
{“myname”:”my value”,”myname2″:”myvalue2″,”myname3″:”myvalue”}
_.each(Session.keys, function(element, index, list){
});
This is a similar question I asked that has a good solution by 7zark7
Can I subscribe to Meteor Session for reactive template render updates?