title: How to get part of html content inserted in a Meteor template if the content is not in the page already
body: <p>I am using Meteor 0.7.0.1 with Spark and I have the following template that used to popover content, and the template is inserted at each post items.</p>
  
  <pre><code>&lt;template name="postLinks"&gt;
      &lt;a href="#" id="ui-popover-container-{{id}}" class="popover-list-trigger dropdown-toggle" data-toggle="dropdown"&gt;
          &lt;i class="icon-calendar"&gt;&lt;/i&gt;
      &lt;/a&gt;
      {{#if poppedUp}}
      &lt;div id="link-popover-wrapper" style="display:none"&gt;
          &lt;ul class="link-popover"&gt;
          {{#each linkOptions}}
              &lt;li&gt;&lt;a tabindex="-1" class="link-action" id="link-{{value}}" href="#"&gt;{{label}}&lt;/a&gt;
              &lt;/li&gt;
           {{/each}}
          &lt;/ul&gt;
      &lt;/div&gt;
      {{/if}}
  &lt;/template&gt;
  </code></pre>
  
  <p>I want to print the div <strong>"link-popover-wrapper"</strong> only once the first time the template loaded. Subsequent template inserts in post items the div won't inserted so only one hidden div is in the page. I handled it using a template variable in following way.
  var _poppeUp = true;</p>
  
  <pre><code>Template.postLiks.helpers({
      poppeUp : function () {
          if (_poppeUp) {
              _poppeUp = false;
              return true;
          }
  
          return false;
      }
  });
  </code></pre>
  
  <p>It is working for the first time the page is loaded and only one instance of the div <strong>"link-popover-wrapper"</strong> is in the page. The problem is when a post is updated and page is re-rendered the template variable still set to false and the div is not printed in the page. I wanted to reset that template variable when a page is re-rendered.</p>
  
  <p>Is there a way to overcome this issue in Meteor ?</p>