Howdy Roger! I'll be the first to admit I'm not the brightest bulb in the box! But I feel fortunate that so many other people who are so very talented and have shared there creations with the general public like me. My hat's off to you folks!
>Why on earth do it the long way round? STDOUT is default: I simply read the documentation for H:T and spotted the following: ************************************************************************ You may optionally supply a filehandle to print to automatically as the template is generated. This may improve performance and lower memory consumption. Example: $template->output(print_to => *STDOUT); The return value is undefined when using the ``print_to'' option. ************************************************************************ >print "Content-type: text/html\n\n", $tmpl->output; >>print "Content-type: text/html\n\n"; >>$tmpl->output(print_to => >>*STDOUT); Then I wrote a simple script that used this option to see if it was indeed faster and reported it only worked in aforementioned syntax. I have to take the documentation at face value and try the sparse examples until I find a method that works. I didn't know that this is the default method used to output the html. I thought if this helps lower the memory requirements and improved throughput- all the better! IIS needs all the help it can get! I can see the benefits of the "print_to" option having some other benefits, such as writing to a static html file that is updated regularly. I am currently trying to figure out how to get the H:T:E "functions" option to work. If you (or anybody else for that matter!) have any simple examples I know I would greatly appreciate them! I wish O'Reilly had a 300 to 400 page book on using and integrating H:T, H:T:E, H:P and CGI::Application. I'd be in heaven! Thanx, Jeff. ------------------------------------------------------- This SF.NET email is sponsored by: Order your Holiday Geek Presents Now! Green Lasers, Hip Geek T-Shirts, Remote Control Tanks, Caffeinated Soap, MP3 Players, XBox Games, Flying Saucers, WebCams, Smart Putty. T H I N K G E E K . C O M http://www.thinkgeek.com/sf/ _______________________________________________ Html-template-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/html-template-users
