2012-08-22 23:40:09 -04:00
|
|
|
Template.posts.show = function(){
|
2012-08-23 00:15:48 -04:00
|
|
|
return Session.equals('state', 'list');
|
2012-08-22 23:40:09 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
Template.posts.posts = function(){
|
|
|
|
var posts = Posts.find({}, {sort: {headline: 1}});
|
|
|
|
return posts;
|
|
|
|
};
|