Among the various changes in the Framework Meteor from version 0.8 to version 1.0, I know that it no longer uses Meteorite, and that the template engine has changed from Handlebars to Blaze. But has the syntax changed? And what has changed?
Among the various changes in the Framework Meteor from version 0.8 to version 1.0, I know that it no longer uses Meteorite, and that the template engine has changed from Handlebars to Blaze. But has the syntax changed? And what has changed?
Yes the syntax of the Meteor has changed in some points, for example:
Before version 1.0 the helpers definition was as follows:
Template.leaderboard.player = function(){
// code goes here
}
Template.leaderboard.goals = function(){
// code goes here
}
With the change it looks like this:
Template.leaderboard.helpers({
'players': function(){
// code goes here
},
'goals': function(){
// code goes here
}
});
You also hear change in created, rendered and destroyed:
What used to be this:
Template.leaderboard.created = function(){
}
Above 1.0 looks like this:
Template.leaderboard.onCreated({
});
Follow the changes that occurred here at this link:
this link might help tb: