Browse Source

Initial commit.

Frederic G. MARAND 9 years ago
commit
3230062cca
10 changed files with 116 additions and 0 deletions
  1. 7 0
      .meteor/.finished-upgraders
  2. 1 0
      .meteor/.gitignore
  3. 7 0
      .meteor/.id
  4. 8 0
      .meteor/packages
  5. 2 0
      .meteor/platforms
  6. 1 0
      .meteor/release
  7. 52 0
      .meteor/versions
  8. 1 0
      simple-todos.css
  9. 14 0
      simple-todos.html
  10. 23 0
      simple-todos.js

+ 7 - 0
.meteor/.finished-upgraders

@@ -0,0 +1,7 @@
+# This file contains information which helps Meteor properly upgrade your
+# app when you run 'meteor update'. You should check it into version control
+# with your project.
+
+notices-for-0.9.0
+notices-for-0.9.1
+0.9.4-platform-file

+ 1 - 0
.meteor/.gitignore

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

+ 7 - 0
.meteor/.id

@@ -0,0 +1,7 @@
+# This file contains a token that is unique to your project.
+# Check it into your repository along with the rest of this directory.
+# It can be used for purposes such as:
+#   - ensuring you don't accidentally deploy one app on top of another
+#   - providing package authors with aggregated statistics
+
+wjan796rdfknwiiw7

+ 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.
+
+meteor-platform
+autopublish
+insecure

+ 2 - 0
.meteor/platforms

@@ -0,0 +1,2 @@
+server
+browser

+ 1 - 0
.meteor/release

@@ -0,0 +1 @@
+METEOR@1.0.1

+ 52 - 0
.meteor/versions

@@ -0,0 +1,52 @@
+application-configuration@1.0.3
+autopublish@1.0.1
+autoupdate@1.1.3
+base64@1.0.1
+binary-heap@1.0.1
+blaze-tools@1.0.1
+blaze@2.0.3
+boilerplate-generator@1.0.1
+callback-hook@1.0.1
+check@1.0.2
+ctl-helper@1.0.4
+ctl@1.0.2
+ddp@1.0.12
+deps@1.0.5
+ejson@1.0.4
+fastclick@1.0.1
+follower-livedata@1.0.2
+geojson-utils@1.0.1
+html-tools@1.0.2
+htmljs@1.0.2
+http@1.0.8
+id-map@1.0.1
+insecure@1.0.1
+jquery@1.0.1
+json@1.0.1
+launch-screen@1.0.0
+livedata@1.0.11
+logging@1.0.5
+meteor-platform@1.2.0
+meteor@1.1.3
+minifiers@1.1.2
+minimongo@1.0.5
+mobile-status-bar@1.0.1
+mongo@1.0.9
+observe-sequence@1.0.3
+ordered-dict@1.0.1
+random@1.0.1
+reactive-dict@1.0.4
+reactive-var@1.0.3
+reload@1.1.1
+retry@1.0.1
+routepolicy@1.0.2
+session@1.0.4
+spacebars-compiler@1.0.3
+spacebars@1.0.3
+templating@1.0.9
+tracker@1.0.3
+ui@1.0.4
+underscore@1.0.1
+url@1.0.2
+webapp-hashing@1.0.1
+webapp@1.1.4

+ 1 - 0
simple-todos.css

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

+ 14 - 0
simple-todos.html

@@ -0,0 +1,14 @@
+<head>
+  <title>simple-todos</title>
+</head>
+
+<body>
+  <h1>Welcome to Meteor!</h1>
+
+  {{> hello}}
+</body>
+
+<template name="hello">
+  <button>Click Me Amadeus</button>
+  <p>You've pressed the button {{counter}} times.</p>
+</template>

+ 23 - 0
simple-todos.js

@@ -0,0 +1,23 @@
+if (Meteor.isClient) {
+  // counter starts at 0
+  Session.setDefault("counter", 0);
+
+  Template.hello.helpers({
+    counter: function () {
+      return Session.get("counter");
+    }
+  });
+
+  Template.hello.events({
+    'click button': function () {
+      // increment the counter when button is clicked
+      Session.set("counter", Session.get("counter") + 1);
+    }
+  });
+}
+
+if (Meteor.isServer) {
+  Meteor.startup(function () {
+    // code to run on server at startup
+  });
+}