[Templates] TTK directive chomping weirdness

[prev] [thread] [next] [Date index for 2004/09/23]

From: Arnett, Bruce
Subject: [Templates] TTK directive chomping weirdness
Date: 22:57 on 23 Sep 2004
This is a multi-part message in MIME format.

------_=_NextPart_001_01C4A1C0.B7E67AAF
Content-Type: text/plain;
	charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

I work on a Perl web application that is supposed to run a variety of
platforms; Windows/IIS, Windows/Apache, Linux/Apache, FreeBSD/Apache,
etc.  We recently have gone through a big push to re-architect the
product using TTK.  The development has been done on a Windows/IIS
environment.  Now that we are in a testing phase we have loaded the code
onto a Linux/Apache server just to check things out and have run into a
serious problem.  The directive chomping flags [%- and -%] are not
working on the Linux/Apache server whereas they work perfectly on all
the Windows/IIS machines we have in development.  This, of course, is
breaking JavaScript and strings all over the place.

=20

The files were in dos format instead of unix format so we tried
converting all of the templates, .pm, and .cgi files to unix format.
The result was that every TTK directive was pre and post chomped instead
of nothing getting chomped.

=20

I even tried setting the config flags PRE_CHOMP and POST_CHOMP on the
TTK object itself with no affect.

=20

We are running TTK 2.13 on all of the machines.  On the Windows machines
we are running ActivePerl 5.6.1 build 638.

=20

The Linux/Apache box:

Perl 5.6.1

linux Red Hat Linux release 7.3

Apache/1.3.27

=20

Any ideas?

=20

Bruce


------_=_NextPart_001_01C4A1C0.B7E67AAF
Content-Type: text/html;
	charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

<html xmlns:v=3D"urn:schemas-microsoft-com:vml" =
xmlns:o=3D"urn:schemas-microsoft-com:office:office" =
xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
xmlns:x=3D"urn:schemas-microsoft-com:office:excel" =
xmlns:p=3D"urn:schemas-microsoft-com:office:powerpoint" =
xmlns:oa=3D"urn:schemas-microsoft-com:office:activation" =
xmlns=3D"http://www.w3.org/TR/REC-html40">;

<head>
<meta http-equiv=3DContent-Type content=3D"text/html; =
charset=3Dus-ascii">
<meta name=3DGenerator content=3D"Microsoft Word 11 (filtered medium)">
<style>
<!--
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
	{margin:0in;
	margin-bottom:.0001pt;
	font-size:12.0pt;
	font-family:"Times New Roman";}
a:link, span.MsoHyperlink
	{color:blue;
	text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
	{color:purple;
	text-decoration:underline;}
span.EmailStyle17
	{mso-style-type:personal-compose;
	font-family:Arial;
	color:windowtext;}
@page Section1
	{size:8.5in 11.0in;
	margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
	{page:Section1;}
-->
</style>

</head>

<body lang=3DEN-US link=3Dblue vlink=3Dpurple>

<div class=3DSection1>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>I work on a Perl web application that is supposed to =
run a
variety of platforms; Windows/IIS, Windows/Apache, Linux/Apache,
FreeBSD/Apache, etc.&nbsp; We recently have gone through a big push to =
re-architect
the product using TTK.&nbsp; The development has been done on a =
Windows/IIS
environment.&nbsp; Now that we are in a testing phase we have loaded the =
code
onto a Linux/Apache server just to check things out and have run into a =
serious
problem.&nbsp; The directive chomping flags [%- and -%] are not working =
on the
Linux/Apache server whereas they work perfectly on all the Windows/IIS =
machines
we have in development.&nbsp; This, of course, is breaking JavaScript =
and
strings all over the place.<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>The files were in dos format instead of unix format =
so we
tried converting all of the templates, .pm, and .cgi files to unix
format.&nbsp; The result was that every TTK directive was pre and post =
chomped
instead of nothing getting chomped.<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>I even tried setting the config flags PRE_CHOMP and
POST_CHOMP on the TTK object itself with no =
affect.<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>We are running TTK 2.13 on all of the machines.&nbsp; =
On the
Windows machines we are running ActivePerl 5.6.1 build =
638.<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>The Linux/Apache box:<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>Perl 5.6.1<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>linux Red Hat Linux release =
7.3<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>Apache/1.3.27<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>Any ideas?<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>Bruce<o:p></o:p></span></font></p>

</div>

</body>

</html>

------_=_NextPart_001_01C4A1C0.B7E67AAF--

_______________________________________________
templates mailing list
templates@xxxxxxxxxxxxxxxx.xxx
http://lists.template-toolkit.org/mailman/listinfo/templates

[Templates] TTK directive chomping weirdness
Arnett, Bruce 22:57 on 23 Sep 2004

Re: [Templates] TTK directive chomping weirdness
Dave Howorth 11:14 on 24 Sep 2004

Generated at 08:55 on 15 Mar 2005 by mariachi v0.52