Skip to content

Commit

Permalink
created meteor app
Browse files Browse the repository at this point in the history
  • Loading branch information
DracoLi committed Mar 29, 2013
0 parents commit d76d054
Show file tree
Hide file tree
Showing 5 changed files with 42 additions and 0 deletions.
1 change: 1 addition & 0 deletions .meteor/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
local
8 changes: 8 additions & 0 deletions .meteor/packages
Original file line number Diff line number Diff line change
@@ -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 change: 1 addition & 0 deletions triggio.css
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/* CSS declarations go here */
13 changes: 13 additions & 0 deletions triggio.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<head>
<title>triggio</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 triggio.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
if (Meteor.isClient) {
Template.hello.greeting = function () {
return "Welcome to triggio.";
};

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
});
}

0 comments on commit d76d054

Please sign in to comment.