Sounds similar to tpage and/or ttree from Template Toolkit. If there's anything the world needs more of, it's Perl HTML templating systems . . . :)
In reply to Re: Prst by Fletch in thread Prst by Sixtease