Well, i need to developer some spiders and sometimes it's so tired to parse html ( HTML::TreeBuilder for that ) then, i was thinking "Why i did not write a 'reverse' Template Toolkit?"
Just because i had a original idea, somebody thought before...
My co-worker found at CPAN the Template::Extract that did exactly what i need :)
In training courses about templating (and TT in particular) I think of it like this:
Given two items from the equation (Template, Data, Output) you can calculate the third.
However, the last time I looked neither Template::Extract nor Template::Generate support the full TT syntax.