On Github theosp / intro-to-meteor-talk
meteor-project ├── common │ └── myapp.js ├── server │ └── myapp.js ├── client │ └── myapp.js └── main.html
<head> <title>Project Title</title> </head> <body> <h1>Today's weather!</h1> {{> forecast}} </body> <template name="forecast"> <div>It'll be {{prediction}} tonight</div> <button>Button</button> </template>
Template.forecast.prediction = function () { return Math.random() > Math.random() ? "cloudy" : "cool and dry"; };
Template.forecast.events({ 'click button': function () { alert("Clicked"); } });
$ mrt add bootstrap-3