Re: [Templates] highlight search terms google-cache-style

2002-10-25 Thread darren chamberlain
* Vincent D Murphy <[EMAIL PROTECTED]> [2002-10-25 14:22]: > i would like to highlight search terms in a html page of search > results, by passing an array of scalars which are the search terms. [-- snip --] > perhaps i could have something like this: > > [% c.postaladdress FILTER html FILTER h

Re: [Templates] template-toolkit and GD

2002-10-25 Thread Perrin Harkins
Pablo Velasquez wrote: I did hope to avoid having tons of png files to clean up later. It will take you about 1000 times as long to figure out how to do some kind of crazy server-push magic as it would to just write a cron job that unlinks all png files in a temp directory that are older than

Re: [Templates] template-toolkit and GD

2002-10-25 Thread Simon Wilcox
On Fri, 2002-10-25 at 19:19, Randal L. Schwartz wrote: > > "Pablo" == Pablo Velasquez <[EMAIL PROTECTED]> writes: > > Pablo> Thanks for the reply. Yes, I've found that if I want an image I > Pablo> need the content-type to be image. And it does work, but my > Pablo> main problem is that I want

RE: [Templates] template-toolkit and GD

2002-10-25 Thread Mark Mills
> -Original Message- > From: Pablo Velasquez [mailto:pablo_velasquez@;citysearch.com] > Basically, I was hoping to do my calculations, send my $vars > to a TT template > that prints out an html table AND a nice graph on the same > page. All in one > go. The graph being dynamic since the

[Templates] highlight search terms google-cache-style

2002-10-25 Thread Vincent D Murphy
i would like to highlight search terms in a html page of search results, by passing an array of scalars which are the search terms. this is my code without highlighting. the string i want to add the highlighting markup to is c.postaladdress . i would need to supply two arguments: an array 'te

Re: [Templates] template-toolkit and GD

2002-10-25 Thread Randal L. Schwartz
> "Pablo" == Pablo Velasquez <[EMAIL PROTECTED]> writes: Pablo> Thanks for the reply. Yes, I've found that if I want an image I Pablo> need the content-type to be image. And it does work, but my Pablo> main problem is that I want to use both in the same document. You'll need to have *two* hit

Re: [Templates] template-toolkit and GD

2002-10-25 Thread Pablo Velasquez
Darren, Thanks for the reply. Yes, I've found that if I want an image I need the content-type to be image. And it does work, but my main problem is that I want to use both in the same document. If I use a seperate script for the graph that would mean sending all those numbers through some "scri

RE: [Templates] TT Book?

2002-10-25 Thread Hann, Brian
Oh and it's by Andy Wardley. Sorry, forgot that part :) -Original Message- From: Hann, Brian Sent: Friday, October 25, 2002 11:10 AM To: Michael Johnson Cc: [EMAIL PROTECTED] Subject: RE: [Templates] TT Book? Actually there was a book printed from the 2000 YAPC conference in Monterey,

RE: [Templates] TT Book?

2002-10-25 Thread Hann, Brian
Actually there was a book printed from the 2000 YAPC conference in Monterey, CA. Among other things there is a section on "Building and Managing Web Sites with Template Toolkit." Of course the only way I got this book was by attending the YAPC in St. Louis this year. I don't even know if you

Re: [Templates] TT and Class::MethodMaker

2002-10-25 Thread robin szemeti
On Thursday 24 October 2002 10:35, Andy Wardley wrote: > On Thu, Oct 24, 2002 at 10:20:44AM +0100, robin szemeti wrote: > > [% FOREACH item = pricelist.foo %] > > Try this: > > [% FOREACH item = pricelist.foo.list %] > > That should upgrade it to a list if it's not already one. ahhh.. jolly good

Re: [Templates] template-toolkit and GD

2002-10-25 Thread darren chamberlain
* Pablo Velasquez <[EMAIL PROTECTED]> [2002-10-24 17:02]: > Hi, Hi. > Basically, I want to dynamically generate a graph using TT and GD. Not > a file to a /tmp folder, rather prints right to the browser. OK. > I can generate the graph by printing directly from Perl: > > print "Content-type: im

Re: [Templates] POST of a form not uploading checkbox_group

2002-10-25 Thread Dave Hodgkinson
"Richard Clarke" <[EMAIL PROTECTED]> writes: > > > > This works but only for a GET method! Using a POST (necessary for body > > text stuff) fails. Any clues? > > > > Ta, > > > > Dave > > > > Perhaps you are trying to read the POST'ed data more than once? Hm. Not deliberately. The funny thin