Use Session
to make variables reactive:
function Print(string, number) {
if (number == 1) { // For descriptions
Session.set('currentdesc', string);
}
else if (number == 2) { // For the first choice
Session.set('currentchoice1', string);
}
else if (number == 3) { // For the second choice
Session.set('currentchoice2', string);
}
}
And your template:
if (Meteor.isClient) {
Template.main.desc = function() {
return Session.get('currentdesc');
}
Template.below.choice1 = function() {
return Session.get('currentchoice1');
}
Template.below.choice2 = function() {
return Session.get('currentchoice2');
}
}
There are also a couple more examples on how to use Session
with Meteor's documentation: http://docs.meteor.com/#session