"use strict";

/* global Meteor */
/* global Template */

if (Meteor.isClient) {
	Template.body.helpers({
		tasks: [
			{text: 'task 1'},
			{text: 'task 2'},
			{text: 'task 3'}
		]
	});
}

if (Meteor.isServer) {
	Meteor.startup(function () {
	// code to run on server at startup
	});
}

"use strict";

/* global Meteor */
/* global Template */
/* global Mongo */

var Tasks = new Mongo.Collection('tasks');

if (Meteor.isClient) {
	Template.body.helpers({
		tasks: function () {
			return Tasks.find({});
		}
	});
}

if (Meteor.isServer) {
	Meteor.startup(function () {
	// code to run on server at startup
	});
}

Replace static tasks with mongodb-backed tasks
Replace static tasks with mongodb-backed tasks
