title: How to show a simple value from a meteor collection in a meteor template?
body: <p>I want to display an object from a collection in meteor using handlebars.</p>
  
  <p>I have this example about what I have:</p>
  
  <p>Collection: Transactions.</p>
  
  <p>Server side:</p>
  
  <pre><code>Meteor.publish('getTransaction', function(transactionid){
      return Transactions.findOne({transactionid:transactionid});
  });
  </code></pre>
  
  <p>Client side:</p>
  
  <p>HTML</p>
  
  <pre><code>    &lt;template name='MainTransac'&gt;
  
      &lt;body&gt;
        &lt;div class="panel panel-primary"&gt;
          &lt;div class="panel-heading"&gt;
              &lt;h3 class="panel-title" align="center"&gt;General information&lt;/h3&gt;
          &lt;/div&gt;
          &lt;div class="panel-body"&gt;
                    &lt;table class="table table-striped"&gt;
                      &lt;tbody&gt;
                         &lt;tr&gt;
                          &lt;td&gt;TransactionID:&lt;/td&gt;
                         &lt;/tr&gt;
                         &lt;tr&gt;
                          &lt;td&gt;{{transactionid}}&lt;/td&gt;
                         &lt;/tr&gt;
                      &lt;/tbody&gt;    
                    &lt;/table&gt;
          &lt;/div&gt;
        &lt;/div&gt;   
      &lt;/body&gt;
     &lt;/template&gt;
  </code></pre>
  
  <p>JS</p>
  
  <pre><code>Template.MainTransac.onCreated(function(){   
  this.subscribe('getTransaction',Router.current().params.transactionid); 
  });
  </code></pre>
  
  <p>As you can see I have receiving the trasactionid from another page. But I am not able to know how can I show the table with the transaction id or any other field from the transaction document.</p>
  
  <p>I really appreciate all your help about it.</p>
  
  <p>If you have any question just let me know, have a great day.</p>