How do I iterate a table in Jade assigning each <td> with a unique id?
<p>I am trying to create a table containing 9 rows with 9 columns. I want to create this by iterating through it with the help of Jade. I'm quite new to Jade so I am probably way off here, but this is my code now;</p>

<pre><code>var test1 = ['0', '1', '2', '3', '4', '5', '6', '7', '8']
var test2 = ['0', '1', '2', '3', '4', '5', '6', '7', '8']
for (var i = 0; i &lt; test1.length; i++) {
    tr
        for (var o = 0; i &lt; test2.length; o++) {
        td(id='square-'+test1[i]+test2[o])
        }
}
</code></pre>

<p>This (obviously?) gives me a syntax error.</p>

<p>How do I go about to iterate a table with 9 rows and 9 cols and give them id=square00, square01, square02 etc..?</p>