switched to meteor.js for cloud solution
This commit is contained in:
17
app/client/app.js
Normal file
17
app/client/app.js
Normal 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")
|
||||
}
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user