From: "Mark Haney" <ma...@abemblem.com>
Subject: Re: Template toolkit issue [SOLVED]


On 05/02/2012 11:01 AM, Lawrence Statton wrote:


I see nowhere in this code where you are producing HTTP headers.

Are you calling this as a CGI? Which web server?



I got it working now. I was under the assumption that the TEMPLATE module included CGI and that adding CGI and going through the process of generating the headers and specifying the beginning and ending of the html was a given.

Frankly, the tutorial and documentation are almost useless in that regard. I can't wait for the badger book to get here. It had better be good or I'll scrap perl altogether and go back to PHP and it's more complete and useful documentation.




Perl is a programming language, not a language which is used only for web programming, so why should you think that Template Toolkit includes CGI? Nowadays CGI is very seldom used, so others might be thinking that it should include PSGI or another interface for web apps...

Of course, Template Toolkit is mostly used for creating HTML content, but it can be used for generating any other type of content, so it doesn't have any relation with HTML either.

Octavian




--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to