title: How to get Meteor.Call to return value for template?
body: <p>I've tried <a href="https://stackoverflow.com/questions/10379445/how-to-get-the-result-of-a-meteor-call-function-in-a-template">to understand this post regarding this concept</a>, however, I'm failing to get it. I have the following simple setup:</p>
  
  <pre><code>/server/test.js
  Meteor.methods({ 
    abc: function() {
      var result = {};
      result.foo = "Hello ";
      result.bar = "World!";
      return result;
    }
  });
  
  /client/myapp.js
  var q = Meteor.call('abc');
  console.log(q);
  </code></pre>
  
  <p>This structure returns to the console <code>undefined</code>.</p>
  
  <p>If I change the <code>myapp.js</code> file to:</p>
  
  <pre><code>Meteor.call('abc', function(err, data) {
    !err ? console.log(data) : console.log(err);
  }
  </code></pre>
  
  <p>I receive the <code>Object</code> in my console.</p>
  
  <p>Ideally this is what I'd like to be able to do, but it doesn't work, stating in the console: <code>Cannot read property 'greeting' of undefined</code></p>
  
  <pre><code>/client/myapp.js
  var q = Meteor.call('abc');
  
  Template.hello.greeting = function() {
     return q.foo;
  }
  </code></pre>
  
  <p>Any help in passing the data from the server object into the template would be greatly appreciated. I'm still learning JavaScript &amp; Meteor.</p>
  
  <p>Thanks!</p>