'How to get lists within a list in doxctemplater

I have a list of definitions I usually populate in an array and render on a generated .docx template using doxctemplater. So for example an array of :

teams :["Lakers means Los Angeles Lakers ", "Celtics means Boston Celtics"]

would list out both strings in a numbered manner after I return

{#teams}
a. {.}
{/teams}

the output will be :

a. Lakers means Los Angeles Lakers

b. Celtics means Boston Celtics

Is there a way to return a list within a list that renders like this : enter image description here

Each line is an array item but how do i get the array item to then reflect the child numbered elements if they have them ?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source