title: Mustache.js template with ajax function
body: <p>mustache.js allow to use functions in view object, but how to push async function into template?
  Here is my async fucntion:</p>
  
  <pre><code>var query = 'plot something';
  var doQuery = function (callback) {
      $.ajax({
          url: "http://myhttp",
          data: {input: query},
          dataType: "jsonp",
          success: function(json) {
              if (typeof callback === "function")
                  callback(json.result);
          }
      });
  }
  </code></pre>
  
  <p>html</p>
  
  <pre><code>&lt;div&gt;{{{myresult}}}&lt;/div&gt;
  </code></pre>
  
  <p>view object</p>
  
  <pre><code>{
     myresult: doQuery()????
  }
  </code></pre>