I wanted to build an awesome place for people to discuss module specific issues, but I don't have any more time for this, and there are much better places to discuss Perl-related issues. I'd recommend asking your question on Stack Overflow or on Perl Monks.
If you are looking for a Perl tutorial or Perl-related news, I hope these links will serve you well.
Posted on 2006-12-24 22:58:36-08 by stoco
Template Toolkit and Images
I have been going nuts with the template object and how it handles image tags. The behavior is not like any I have seen before in that in some instances when processing the template the image tag makes it through without issue, and in others it is completely removed. Take the following snip:
[% IF amp_image1 %] <a href="[% cfg_pagesurl %]/[% frmName %]/[% amp_image1 %]"> <img src='[% cfg_pagesurl %]/[% frmName %]/[% amp_image1 %]' width='120' border='0'> </a><br> [% END %]
On some pages, the output HTML looks as sucn when amp_image1 is present:
<a href="http://fsbo-home.com/ads/OR_RANCH_FOR_SALE/Expert_image_picture_and_files_117.jpg"> + </a><br>
And on other pages, it works correctly, as such:
<a href="http://fsbo-home.com/ads/OR_RANCH_FOR_SALE/Expert_image_picture_and_files_117.jpg"> <img src='http://fsbo-home.com/ads/OR_RANCH_FOR_SALE/Expert_image_picture_and_files_117.jpg' width= +'120' border='0'> </a><br>
It is interesting to note that a blank space is left behind for each of the missing characters that should have shown up in the image tag, including the open and close (> <) Of course, I have checked the remaining HTML as well as the presensce of the 'amp_image1' variable. It all seems to be working, just the randomness of how the image tag is processed. Does anyone have a clue with this? Redhat Linux 2.4.26 Apache 1.3.33 Perl 5.8.3 Template::Toolkit 2.15
Direct Responses: Write a response