I look at the breakdown of meteors today.
I am interested in this repo:
https://github.com/alethes/meteor-pages
The source code shown looks simple:
this.Pages = new Meteor.Pagination("collection-name");
and
<body> {{> collection-name}} </body> <template name="collection-name"> {{> pages}} {{> pagesNav}} </template>
I want to break this demography:
https://github.com/meteor/simple-todos
The code I see there is simplified:
Tasks = new Mongo.Collection("tasks"); if (Meteor.isServer) { // This code only runs on the server Meteor.publish("tasks", function () { return Tasks.find({})})} if (Meteor.isClient) { // This code only runs on the client Meteor.subscribe("tasks"); // ... }
and
<body> <ul> {{#each tasks}} {{> task}} {{/each}} </ul> </body> <template name="task"> <li> {{text}} </li> </template>
Perhaps my brain is a little slow today. Itβs not obvious to me how to break the code above.
How to use github.com/alethes/meteor-pages to break the code above into code with simple words?
source share