Adel Qalieh 13 роки тому
батько
коміт
34b2300518
6 змінених файлів з 43 додано та 0 видалено
  1. 1 0
      .meteor/.gitignore
  2. 8 0
      .meteor/packages
  3. 1 0
      .meteor/release
  4. 1 0
      astroid-web.css
  5. 13 0
      astroid-web.html
  6. 19 0
      astroid-web.js

+ 1 - 0
.meteor/.gitignore

@@ -0,0 +1 @@
+local

+ 8 - 0
.meteor/packages

@@ -0,0 +1,8 @@
+# Meteor packages used by this project, one per line.
+#
+# 'meteor add' and 'meteor remove' will edit this file for you,
+# but you can also edit it by hand.
+
+autopublish
+insecure
+preserve-inputs

+ 1 - 0
.meteor/release

@@ -0,0 +1 @@
+0.6.4.1

+ 1 - 0
astroid-web.css

@@ -0,0 +1 @@
+/* CSS declarations go here */

+ 13 - 0
astroid-web.html

@@ -0,0 +1,13 @@
+<head>
+  <title>astroid-web</title>
+</head>
+
+<body>
+  {{> hello}}
+</body>
+
+<template name="hello">
+  <h1>Hello World!</h1>
+  {{greeting}}
+  <input type="button" value="Click" />
+</template>

+ 19 - 0
astroid-web.js

@@ -0,0 +1,19 @@
+if (Meteor.isClient) {
+  Template.hello.greeting = function () {
+    return "Welcome to astroid-web.";
+  };
+
+  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
+  });
+}