Slash Boxes
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

lorn (7637)

  (email not shown publicly)

Journal of lorn (7637)

Monday February 04, 2008
10:05 PM

Template Toolkit Reverse

[ #35581 ]

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 :)

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
More | Login | Reply
Loading... please wait.
  • In training courses about templating (and TT in particular) I think of it like this:

    • Data + Template = Output (use Template)
    • Output - Template = Data (use Template::Extract)
    • Output - Data = Template (use Template::Generate)

    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.