Perl Monk, Perl Meditation | |
PerlMonks |
Template Toolkit: template paths, INCLUDE_PATH, errorby 7stud (Deacon) |
on Jan 06, 2015 at 11:18 UTC ( [id://1112323]=perlquestion: print w/replies, xml ) | Need Help?? |
7stud has asked for the wisdom of the Perl Monks concerning the following question: Dear Monks, Using Template Toolkit, I can only get a blank page to display after processing my template. Here is my simple template:
Here is the CGI program that tries to send that template to the browser:
That program is essentially copied from the docs.
Here is my directory structure:
Here is create_form.pl:
The url I'm using in my browser is:
According the the Template Toolkit docs:
The process() method is called to process a template. The first parameter indicates the input template as one of: a filename relative to INCLUDE_PATH, if defined;.... docs I am able to send a request to the program simple_cgi.pl, which does not use a template, and it works as expected. The url I use for that request is similar:
Here is simple_cgi.pl:
What am I doing wrong?
Back to
Seekers of Perl Wisdom
|
|