Skip to content

Commit

Permalink
Added default meteor files
Browse files Browse the repository at this point in the history
  • Loading branch information
zquestz committed Jul 27, 2012
0 parents commit cdeed81
Show file tree
Hide file tree
Showing 5 changed files with 40 additions and 0 deletions.
1 change: 1 addition & 0 deletions .meteor/.gitignore
@@ -0,0 +1 @@
local
6 changes: 6 additions & 0 deletions .meteor/packages
@@ -0,0 +1,6 @@
# 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
1 change: 1 addition & 0 deletions simplechat.css
@@ -0,0 +1 @@
/* CSS declarations go here */
13 changes: 13 additions & 0 deletions simplechat.html
@@ -0,0 +1,13 @@
<head>
<title>simplechat</title>
</head>

<body>
{{> hello}}
</body>

<template name="hello">
<h1>Hello World!</h1>
{{greeting}}
<input type="button" value="Click" />
</template>
19 changes: 19 additions & 0 deletions simplechat.js
@@ -0,0 +1,19 @@
if (Meteor.is_client) {
Template.hello.greeting = function () {
return "Welcome to simplechat.";
};

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.is_server) {
Meteor.startup(function () {
// code to run on server at startup
});
}

0 comments on commit cdeed81

Please sign in to comment.