initial commit
This commit is contained in:
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
.meteor/local
|
||||||
1
confighub.css
Normal file
1
confighub.css
Normal file
@@ -0,0 +1 @@
|
|||||||
|
/* CSS declarations go here */
|
||||||
21
confighub.html
Normal file
21
confighub.html
Normal file
@@ -0,0 +1,21 @@
|
|||||||
|
<head>
|
||||||
|
<title>confighub</title>
|
||||||
|
</head>
|
||||||
|
|
||||||
|
<body>
|
||||||
|
<div class="container">
|
||||||
|
<div class="row">
|
||||||
|
<h1>Welcome to confighub.io</h1>
|
||||||
|
<div class="col-lg-12">
|
||||||
|
Here goes list of machines
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- {{> hello}} -->
|
||||||
|
</body>
|
||||||
|
|
||||||
|
<template name="hello">
|
||||||
|
<button>Click Me</button>
|
||||||
|
<p>You've pressed the button {{counter}} times.</p>
|
||||||
|
</template>
|
||||||
23
confighub.js
Normal file
23
confighub.js
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
if (Meteor.isClient) {
|
||||||
|
// counter starts at 0
|
||||||
|
Session.setDefault('counter', 0);
|
||||||
|
|
||||||
|
Template.hello.helpers({
|
||||||
|
counter: function () {
|
||||||
|
return Session.get('counter');
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
Template.hello.events({
|
||||||
|
'click button': function () {
|
||||||
|
// increment the counter when button is clicked
|
||||||
|
Session.set('counter', Session.get('counter') + 1);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
if (Meteor.isServer) {
|
||||||
|
Meteor.startup(function () {
|
||||||
|
// code to run on server at startup
|
||||||
|
});
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user