title: Play Framework: how to render "nested" list
body: <p>Issue with rendering of nested lists:</p>
  
  <p>I have a class:</p>
  
  <pre><code>public MyRecord 
  {
    String id;
    List&lt;String &gt; tags;
  }
  </code></pre>
  
  <p>I have an object named 'records' which is of a type: List of 'MyRecord'.</p>
  
  <p>I am trying to render itin JSON, using a template.</p>
  
  <p>This is what I would <strong>like</strong> to do:</p>
  
  <pre><code>#{list records, as:'record'}
          {"c":[
              {"v":"${record.id}"},
  #{list ${record.list}, as:'tag'}
      {"v":"${tag}"}
  #{/list}           
          ]}
  #{/list}
  </code></pre>
  
  <p>Unfortunately ${record.list} is not supported, and I failed to find a working solution.</p>
  
  <p>Of course, I can add a method to MyRecord which will "render" the "tags" into the needed format, and use this method instead of the inner #{list}, but that's isn't in line with the templates approach. I am open to ideas to modify the data structure, if this will help to achieve the goal.</p>
  
  <p>Thanks
  Max</p>