title: jQuery template/tmpl how to build dynamic output from json?
body: <p>Trying to build dynamic output from json and using jq/template tmpl display rows/columns.
  Somehow i need to iterate thru columns and Rows not sure how.</p>
  
  <p>I do <strong>NOT KNOW</strong> name of json properties, so it needs to be dynamic.</p>
  
  <p><em>Finally got an answer</em> <a href="https://stackoverflow.com/a/9006673/103303">Here</a>
      </p>
  
  <pre><code>&lt;script id="template" type="text/x-jquery-tmpl"&gt;
          &lt;li&gt;{Need Loop here?}&lt;/li&gt;           
   &lt;/script&gt;
  
  var invoice = {
    invoiceItems: [
      { type: 'item', 
        part: '99Designs', description: '99 Designs Logo', 
        price: 450.00, qty: 1 },
      { type: 'service',
        service: 'Web development and testing', 
        price: 25000.00 },
      { type: 'item',
        part: 'LinodeMonthly', description: 'Monthly site hosting', 
        price: 40.00, qty: 12 }
    ]
  };
  
  $("#template")
      .tmpl(invoice.invoiceItems)
      .appendTo("#place_holder");
  </code></pre>
  
  <p>Also, is any way to display json property name?
  Like:</p>
  
  <p>type > part > description> .....</p>
  
  <p>Here's <a href="http://jsfiddle.net/pyccki/G4FxZ/1/" rel="nofollow noreferrer">jsFiddle</a></p>
  
  <p><strong><em>Update</em></strong>:</p>
  
  <p>I start using <a href="http://borismoore.github.io/jsrender/demos/" rel="nofollow noreferrer">Jsrender</a>, much faster. I still haven't figure out how to create dynamic templates. Will update if get completed.</p>