title: Explain usage of {{#with}} in meteor JS
body: <p>I was trying to retrieve the query result of this meteor helper using {{#with}} .. {{/with}}, but the template is not getting the data of the returned result.</p>
  
  <p>So can someone explain what is the proper way of using the {{#with}} spacebar on meteor js. I tried using the {{#each}} ... {{/each}} and it perfectly gets the data.</p>
  
  <pre><code>Template.projectDetail.helpers({
  
      detail: function(){
          //var project = Session.get("aProject");
          if(Session.get("projectSelected")){
              var project = Project.find({_id: Session.get("projectSelected")}).fetch();
          }
  
          return project;
      }
  
  });
  
  &lt;template name="projectDetail"&gt;
  &lt;div class="project"&gt;
      {{#with detail}}
      &lt;h4 class="project-title"&gt;
          &lt;span&gt;{{name}}&lt;/span&gt;
          &lt;i class="glyphicon glyphicon-trash pull-right del"&gt;&lt;/i&gt;
          &lt;i class="glyphicon glyphicon-plus pull-right add"&gt;&lt;/i&gt;
      &lt;/h4&gt;
      &lt;div class="clearfix"&gt;&lt;/div&gt;
  
      &lt;div class="project-description"&gt;
          &lt;label&gt;Project description:&lt;/label&gt;
          &lt;p&gt;
          {{remarks}}
          &lt;/p&gt;
      &lt;/div&gt;
      {{/with}}
  &lt;/template&gt;
  </code></pre>