Skip to content

Instantly share code, notes, and snippets.

View nachiket-p's full-sized avatar

Nachiket Patel nachiket-p

View GitHub Profile
@nachiket-p
nachiket-p / meteor_servercall.html
Created June 21, 2012 07:41
Meteor: Calling server method from client
<head>
<title>meteor_servercall</title>
</head>
<body>
{{> simple}}
{{> passData}}
</body>
<template name="simple">
if (Meteor.is_client) {
var userName = "PatelNachiket";
Template.hello.greeting = function () {
return "Fetch recent tweets from Twitter stream of user : " ;
};
Template.hello.events = {
'click #fetchButton' : function () {
console.log("Recent tweets from stream!");
$('#fetchButton').attr('disabled','true').val('loading...');
test
@nachiket-p
nachiket-p / meteor-eventmap.html
Created June 28, 2012 11:37
How to create Backbone like event-map for meteor template events
<head>
<title>meteor-eventmap</title>
</head>
<body>
{{> hello}}
{{> hello2}}
</body>
<template name="hello">