Nice to see you solved it. I personally use Template Toolkit (via
). In addition to it being very mature, robust, well supported in a number of great Perl webframes, and well documented; it is also very flexible and is basically its own programming language.
. Ignore that last part, I'm trying to talk you
using it. xD