in reply to Can HTML::Template do this?

Just go for it anyway. The browser will finish your table for you leaving blank space where there are no data elements. This saves you from worrying too much about counting cells etc. You are then able to create tables with any number of columns.

The table below shows this.
12
34
5