in reply to Programmatically generating HTML tables including <thead> and <tbody>
Personally I prefer to use Template Toolkit and write the HTML myself.