unfortunatly the whole thing isn't used for webpages or any of the like. HTML::Template and Mason are not suited for the whole purpose of what this is doing (it's just an excerpt out of the whole thing).
I'm going to dig out my copy of the camel book and start reading, thanks for the direction!