switched to meteor.js for cloud solution

This commit is contained in:
Senad Uka
2015-12-27 06:26:48 +01:00
parent 5b8282935f
commit 2ef3814c0c
20 changed files with 275 additions and 25 deletions

17
app/client/app.js Normal file
View File

@@ -0,0 +1,17 @@
if (Meteor.isClient) {
Template.display.helpers({
temperatures: function () {
return Temperatures.find({}, {sort: {created_at: -1}})
}
});
Template.display.events({
});
Template.temperature.helpers({
created_at_formatted: function() {
return moment(this.created_at).format("DD.MM.YYYY, HH:MM")
}
});
}