On Tue, Aug 05, 2003 at 05:58:18PM -0400, Dave Baker wrote:
> In case somebody might find this useful:
>
> Here's what I'm using in my templates, to get TT2 to drop in the
> contents of another URL. (The ua.simple_request method and syntax
> shown in Hans' example from last year didn't work for me.)
>
> [% BLOCK httpquery %]
> [% # 'ua' is a reference to an LWP::UserAgent
> response = ua.get("$url");
> response.content;
> %]
> [% END %]
What about wrapping up:
use LWP::Simple qw($ua);
in a plugin returning the $ua object.
If properly encouraged I might write it... :-)
--
/********************************************************/
/* Kenneth Ekdahl ([EMAIL PROTECTED]), ([EMAIL PROTECTED]) */
/* http://sensei.nu http://merit.sensei.nu */
/********************************************************/
_______________________________________________
templates mailing list
[EMAIL PROTECTED]
http://lists.template-toolkit.org/mailman/listinfo/templates