title: How to send an array of maps and iterate over it using gin-templating
body: <p>Following is the snippet of a working code. I am using gin templating engine.</p>
  
  <pre><code>c.HTML(200, "index", gin.H{
              "title":    "Welcome",
              "students": map[int]map[string]string{1: {"PID": "1", "Name": "myName"}},})
  </code></pre>
  
  <p>And in index template I have:</p>
  
  <pre><code> &lt;TABLE class= "myTable" &gt;
          &lt;tr class="headingTr"&gt;
              &lt;td&gt;Name&lt;/td&gt;
          &lt;/tr&gt;
          {{range $student := .students}}
          &lt;td&gt;{{$student.Name}}&lt;/td&gt;                    
          {{end}}
   &lt;/TABLE&gt;
  </code></pre>
  
  <p>As you can see I have hard-coded the value of <code>students</code> on the headers (the map). I want to have this data from a rest API that I have built. the response of my rest API is an array:</p>
  
  <pre><code> [
    {
      "id": 1,
      "name": "Mary"
    },
    {
      "id": 2,
      "name": "John"
    }
  ]
  </code></pre>
  
  <p>I can unmarshal this JSON response into <code>map[string]string</code> instead of <code>map[int]map[string]string</code>. How can pass this unmarhsaled body in parameter value for students and then iterate over this array the index template?</p>