-
Notifications
You must be signed in to change notification settings - Fork 0
/
simple-scrum.js
38 lines (32 loc) · 857 Bytes
/
simple-scrum.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
// can be accessed from both the server and the client & update themselves automatically
Tasks = new Mongo.Collection("tasks");
// Meteor client code
if (Meteor.isClient) {
// You can pass data into templates from your JavaScript code by defining helpers.
Template.body.helpers({
/*tasksStatic: [
{
name : 'Learn AngularJs',
info : 'Blubb',
estimation: 1,
status: 'ToDo',
personResponsible: 'Chuck Norris'
},{
name : 'Learn NodeJs',
info : 'Blah',
estimation: 5,
status: 'InProgress',
personResponsible: 'Jackie Chan'
},{
name : 'Learn Meteor',
info : 'huh',
estimation: 3,
status: 'Done',
personResponsible: 'Bruce Lee'
}
]*/
tasks: function () {
return Tasks.find({});
}
});
}