diff --git a/app/meteor/skel/~name~.js b/app/meteor/skel/~name~.js index fb93efc449..e68f2f607c 100644 --- a/app/meteor/skel/~name~.js +++ b/app/meteor/skel/~name~.js @@ -3,17 +3,17 @@ if (Meteor.isClient) { return "Welcome to ~name~."; }; - Template.hello.events = { + Template.hello.events({ 'click input' : function () { // template data, if any, is available in 'this' if (typeof console !== 'undefined') console.log("You pressed the button"); } - }; + }); } if (Meteor.isServer) { Meteor.startup(function () { // code to run on server at startup }); -} \ No newline at end of file +}