Dreamweaver MX has its own templating system.
Took me about an hour, hour and a half, to write a primitive HTML::Template
to dreamweaver template.
The biggest trick is that dreamweaver parameters should be "declared" in a
section (we usually put it at the end of the <head /> before they are used.
Using vars before and after declaration has different syntax.
Here are a couple sample lines, dealing with the basic variables...
BEFORE DECLARATION:
s#<TMPL_VAR \s+ NAME="?([^"]*?)"? \s* >#<!-- TemplateBeginEditable
name="$1" --><!-- TemplateEndEditable -->#gx;
AFTER DECLARATION: @@(varname)@@ syntax
s#<TMPL_VAR \s+ NAME="?([^"]*?)"? \s* >#@@($1)@@#gx;
I _said_ it was primitive.
Dreamweaver MX also seems to hate any template tags before the xmlDecl or
<html> start tag.
-----Original Message-----
From: Peter Scott [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 24, 2002 3:29 PM
To: [EMAIL PROTECTED]
Subject: [htmltmpl] Tag-within-tag question
This is arguably not a HTML::Template question but since not many
people besides HTML::Template users will have encountered this
situation I will ask here.
I have a lot of template code like
<OPTION <TMPL_IF NAME=foo>SELECTED</TMPL_IF>>Foo</OPTION>
and similar for radio buttons and checkboxes. A customer's favorite
HTML editing application (DreamWeaver) does not like this syntax, and
persists in changing it to
<OPTION><TMPL_IF NAME=foo>SELECTED</TMPL_IF>>Foo</OPTION>
^
(It inserts the extra >).
This after fiddling with DW's options for rewriting HTML, and also
trying the comment form of <TMPL_IF>.
I can see two choices, equally unpleasant:
(1) Get customer to use another HTML editor. Only choice appears to be
emacs/vi. Customer will detest this option.
(2) Have my application output the whole <OPTION> tag via a <TMPL_VAR>
instead of just the SELECTED attribute. I detest this option because
customer will not be able to switch between checkboxes, radio buttons,
and menus without bugging me.
Has anyone else encountered this situation and found a third solution?
--
Peter Scott
Pacific Systems Design Technologies
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf _______________________________________________
Html-template-users mailing list [EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/html-template-users
------------------------------------------------------------------------------
This message is intended only for the personal and confidential use of the designated
recipient(s) named above. If you are not the intended recipient of this message you
are hereby notified that any review, dissemination, distribution or copying of this
message is strictly prohibited. This communication is for information purposes only
and should not be regarded as an offer to sell or as a solicitation of an offer to buy
any financial product, an official confirmation of any transaction, or as an official
statement of Lehman Brothers. Email transmission cannot be guaranteed to be secure or
error-free. Therefore, we do not represent that this information is complete or
accurate and it should not be relied upon as such. All information is subject to
change without notice.
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Html-template-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/html-template-users