http://docs.meteor.com/#/full/tracker
https://www.meteor.com/blaze
<div class="friendList">
<ul>
{{#each friends}}
<li class="{{#if selected}}selected{{/if}}">
{{firstName}} {{lastName}}
</li>
{{/each}}
</ul>
</div>
https://www.meteor.com/ejson
> EJSON.stringify({ when: new Date })
"{"when":{"$date":1412884295442}}"
> EJSON.stringify({ imageData: new Uint8Array(10) })
"{"imageData":{"$binary":"AAAAAAAAAAAAAA=="}}"
> EJSON.stringify({_id: new Mongo.ObjectID})
"{"_id":{"$type":"oid","$value":"34c420c028fb169c31041ab0"}}"
https://www.meteor.com/ddp
https://www.meteor.com/livequery
https://www.meteor.com/mini-databases
https://www.meteor.com/isobuild
https://atmospherejs.com
// on the server
Meteor.publish('posts', function() {
if(isAdmin(this.userId)){
return Posts.find();
}else{
return Posts.find({flagged: false});
}
});
// on the server
Meteor.publish('posts', function(author) {
return Posts.find({flagged: false, author: author});
});
// on the client
Meteor.subscribe('posts', 'bob-smith');