forked from meteor/meteor
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Simplified skel template for new meteor apps.
meteor create --example doesn't require dirname. meteor create --list instead of --list-examples.
- Loading branch information
1 parent
d7e35f3
commit 150a11b
Showing
9 changed files
with
56 additions
and
100 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/* CSS declarations go here */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<head> | ||
<title>~name~</title> | ||
</head> | ||
|
||
<body> | ||
{{> hello}} | ||
</body> | ||
|
||
<template name="hello"> | ||
<div class="hello"> | ||
<h1>Hello World!</h1> | ||
{{greeting}} | ||
<input type="button" value="Click" /> | ||
</div> | ||
</template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
if (Meteor.is_client) { | ||
Template.hello.greeting = function () { | ||
return "Welcome to ~name~."; | ||
}; | ||
|
||
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 | ||
}); | ||
} |