astroid-web.js 430 B

12345678910111213141516171819
  1. if (Meteor.isClient) {
  2. Template.hello.greeting = function () {
  3. return "Welcome to astroid-web.";
  4. };
  5. Template.hello.events({
  6. 'click input' : function () {
  7. // template data, if any, is available in 'this'
  8. if (typeof console !== 'undefined')
  9. console.log("You pressed the button");
  10. }
  11. });
  12. }
  13. if (Meteor.isServer) {
  14. Meteor.startup(function () {
  15. // code to run on server at startup
  16. });
  17. }