In reply to the Dreamweaver/HTML::Template question, I ran into that
myself and posted this solution on the H::T mailing list a while back.
Since then I have another small tip to add. In BBedit, I use the below
regular expression as a stored search pattern. It find lines that begin
with some space and then a tag closing--which DW will sometimes to do
"correct" H::T code. The regular expression is this:
^\s*">
-mark
-------- Original Message --------
From: Mark Stosberg <[EMAIL PROTECTED]>
Subject: [htmltmpl] Tip for better Dreamweaver compatibility
I was now finally able to reproduce and resolve an in issue I've had
with using HTML::Template in conjunction with Dreamweaver 4.0
(Macintosh, specifically).
The problem primarily occurs when an template tag is invalidly nested
(according to HTML) inside another tag, like this:
<input type="text" name="qt-<!-- tmpl_var name="product_id" -->">
In some cases, Dreamweaver would "clean this up" to look like this:
<input type="text" name="qt-<!-- tmpl_var name="product_id" -->
">
The extra line break then would frequently cause a problem in my code.
However, I discovered that if I simply removed the quotes about the
tmpl_var name, then DW would keep the whole token together when applying
the same transformation that caused the extra line break before. So this
didn't break for me:
<input type="text" name="qt-<!-- tmpl_var name=product_id -->">
So the solution seems to be avoid using quotes around the template
variables names, especially when they are used inside of other HTML
tags.
Note: I tried turning of HTML rewriting and keeping the quotes, and the
bug still bit me.
-mark
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]