in reply to CSS and perl

I'm working on LAYOUTs. I want to write a class that manages complicated layout creation. I will define the layout as a matrix, and each element in the matrix will specify a "box" in the web page, and carry specific (CSS and more)information about that box.

Work the problem backwards. Get your layout working with static HTML, then either

  1. Templatize the HTML using HTML::Template or Template::Toolkit, or
  2. Break the HTML up into pieces and get Perl to print them somehow.

Note that this is completely independent of CSS.