BrianC has asked for the wisdom of the Perl Monks concerning the following question:
and test.html#!/usr/bin/perl -wT use strict; use Template; use CGI; my $q = CGI->new; print $q->header("text/html"); my $template = Template->new({INCLUDE_PATH => '/home/xxxx/yyy/zzzz'}); my $vars = { message => 'Hello', }; $template->process('test.html', $vars);
And, as I've said, get no output except the content type header. Thanks for any help, Brian<html> <head> <title>TestPage</title> </head> <body> <h1>Test Message</h1> <p>[% message %]</p> <p>That's it</p> </body> </html>
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: no output from template toolkit
by jbisbee (Pilgrim) on Jul 08, 2006 at 00:08 UTC | |
by BrianC (Acolyte) on Jul 08, 2006 at 00:34 UTC |