I have json data: {a: null, levels: [{name: 'abc'}, {name: 'xyz'}...]}
and i wanna out list of names, so this is template:
{namespace com.andymur.reportconstructor}
/**
* @levels
*/
{template .levels}
<ul>
{foreach $level in $levels}
<li>
{$
level.name}
</li>
{/foreach}
</ul>
{/template}
compilation fails with exception: In file levels.soy, template
com.andymur.reportconstructor.levels: Found references to data keys
that are not declared in SoyDoc: [levels]
How could i declare data keys in levels? Can't find in docs | google,
and can't suppose how to do it. Thanks in advance.