title: flask_moment current time refresh in browser not updating
body: <p>Following basic setup with python3.4, jinja2, flask_moment (0.5.1), Flask(0.10.1) integration. 
  I am trying out the capability to simply understand the workings. 
  The example is nonsensical but I want to get browser to display:</p>
  
  <ul>
  <li>firstly, the actual time in real time ("The local time is ...") continually updated in real time</li>
  <li>secondly, the time elapsed ("That was ..."). </li>
  </ul>
  
  <p>Jinja2 code:</p>
  
  <pre><code>    &lt;p&gt;The local time is {{ moment(current_time).format('LT', refresh=True) }}.&lt;/p&gt;
      &lt;p&gt;That was {{ moment(current_time).fromNow(refresh=True) }}&lt;/p&gt;
  </code></pre>
  
  <p>The second line refresh works fine in the browser ("That was 1/2/3 minutes ago"), indicating all libraries working correctly, but the first line refresh doesn't work. </p>
  
  <p>The method moment(current_time).format('LT', refresh=True) I thought would display the time in real time with the refresh option set to "True", but it doesn't. </p>
  
  <p>Looking at browser markup, all the libraries are there and there are no errors. See markup below. 
  Any hints appreciated or maybe I am misunderstanding the capability?</p>
  
  <p>Browser source:</p>
  
  <pre><code>    &lt;div class="container"&gt;
          &lt;div class="page-header"&gt;
              &lt;h1&gt;Hello, Flask!&lt;/h1&gt;
          &lt;/div&gt;
      &lt;/div&gt;
      &lt;p&gt;The local time is &lt;span class="flask-moment" data-timestamp="2016-01-28T12:19:20Z" data-format="format('LT')" data-refresh="60000" style="display: none"&gt;2016-01-28T12:19:20Z&lt;/span&gt;.&lt;/p&gt;
      &lt;p&gt;That was &lt;span class="flask-moment" data-timestamp="2016-01-28T12:19:20Z" data-format="fromNow(0)" data-refresh="60000" style="display: none"&gt;2016-01-28T12:19:20Z&lt;/span&gt;&lt;/p&gt;
  
  
     &lt;script src="/static/bootstrap/jquery.min.js?bootstrap=3.3.5.7"&gt;&lt;/script&gt;
     &lt;script src="/static/bootstrap js/bootstrap.min.js?bootstrap=3.3.5.7"&gt;&lt;/script&gt;
     &lt;script src="//cdnjs.cloudflare.com/ajax/libs/moment.js/2.10.3/moment-with-locales.min.js"&gt;&lt;/script&gt;
     &lt;script&gt;
       moment.locale("en");
       function flask_moment_render(elem) {
         $(elem).text(eval('moment("' + $(elem).data('timestamp') + '").' + $(elem).data('format') + ';'));
         $(elem).removeClass('flask-moment').show();
       }
       function flask_moment_render_all() {
         $('.flask-moment').each(function() {
         flask_moment_render(this);
         if ($(this).data('refresh')) {
           (function(elem, interval) { setInterval(function() { flask_moment_render(elem) }, interval); })(this, $(this).data('refresh'));
          }
      })
  }
  $(document).ready(function() {
      flask_moment_render_all();
  });
  </code></pre>
  
  <p></p>