/** * Created by RSercan on 26.12.2015. */strSessionConnection='connection';strSessionCollectionNames='collectionNames';Template.registerHelper(strSessionConnection,function(){if(Session.get(strSessionConnection)){returnConnections.findOne({_id:Session.get(strSessionConnection)});}});Template.registerHelper(strSessionCollectionNames,function(){returnSession.get(strSessionCollectionNames);});