On Mon, Dec 27, 2004 at 12:34:55PM -0500, Bill Catlan wrote:
> I regret the delay in my reply.

No worries, it's that time of the year.


> Here are the settings in flexmart_sys.ini for the template paths:
> 
> sys_html_tmpl_root={flexmart.sys_root_dir}/pgman/tmpl
> host_html_tmpl_root={flexmart.host_root_dir}/tmpl

Mine look the same:
  sys_html_tmpl_root={flexmart.sys_root_dir}/pgman/tmpl
  host_html_tmpl_root={flexmart.host_root_dir}/tmpl


> std_main.0.tmpl  should be found under sys_html_tmpl_root; in your case, 
> this would be:
> 
> /home/flexmart/local/flexmart-0.1/flexmart/pgman/tmpl

Yep, I've got it.


> Please double check you directory settings, the directory structure, and 
> the permissions and let me know how it turns out.

Everything looks correct. I did a bit more digging and dumped the value
of tmpl_path which looks like this:

 $VAR1 = 
'/home/flexmart/local/flexmart/fmdemo/tmpl:/home/flexmart/local/flexmart/flexmart/pgman/tmpl';

My reading of the docs[1] indicates that this is not standard usage to
concatenate pathnames by colons; multiple paths should be given in an
array ref. I tried changing the return value to an array ref using the
following code in line 213 of HTMLTemplate.pm:

  return [split(/:/,$tmpl_path)];

Unfortunately, this still is not working which makes me think there is a
problem with how the templates are being told to be found. I don't use
HTML::Template so may be completely off-base. You don't perhaps have
HTML_TEMPLATE_ROOT set in your environment do you? Any further ideas?
BTW, I'm running this code on Debian Linux. What OS are you using?

Ah, I think I've found it. You don't use tmpl_load from C::A so
tmpl_path is superfluous. However, when you call H::T->new in
build_page, you aren't passing in any path info. I'm guessing you must
have HTML_TEMPLATE_ROOT set. How else are you telling H::T where to find
the templates?


William

[1]
http://search.cpan.org/~markstos/CGI-Application-3.31/lib/CGI/Application.pm#Application_Module_Methods

-- 
Knowmad Services Inc.
http://www.knowmad.com

---------------------------------------------------------------------
Web Archive:  http://www.mail-archive.com/[email protected]/
              http://marc.theaimsgroup.com/?l=cgiapp&r=1&w=2
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to