Skip Menu |

This queue is for tickets about the HTML-DWT CPAN distribution.

Report information
The Basics
Id: 5972
Status: new
Priority: 0/
Queue: HTML-DWT

People
Owner: Nobody in particular
Requestors: MARKSTOS [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Wishlist
Broken in: 2.08
Fixed in: (no value)



Subject: wish: support for Dreamweaver MX
Dreamweaver MX introduced a new template syntax. It would be great if that module could parse that syntax as well.
From: markstos [...] cpan.org
[MARKSTOS - Wed Apr 7 17:28:09 2004]: Show quoted text
> Dreamweaver MX introduced a new template syntax. It would be great if > that module could parse that syntax as well.
Here is a list of key differerences, taken from dwt.pl: $p1=index($source, "<!-- #BeginTemplate "); # check for Dreamweaver version, CS 15.02.04 if ($p1>=0) { # DW 4 $BEGIN_TEMPLATE_STRING = "<!-- #BeginTemplate "; $BEGIN_EDITABLE_TEMPLATE = "<!-- #BeginEditable "; $END_EDITABLE_TEMPLATE = "<!-- #EndEditable -->"; $BEGIN_EDITABLE_PAGE = "<!-- #BeginEditable "; $END_EDITABLE_PAGE = "<!-- #EndEditable -->"; } else { $p1=index($source, "<!-- InstanceBegin template="); if ($p1>=0) { # DW MX $BEGIN_TEMPLATE_STRING = "<!-- InstanceBegin template="; $BEGIN_EDITABLE_TEMPLATE = "<!-- TemplateBeginEditable name="; $END_EDITABLE_TEMPLATE = "<!-- TemplateEndEditable -->"; $BEGIN_EDITABLE_PAGE = "<!-- InstanceBeginEditable name="; $END_EDITABLE_PAGE = "<!-- InstanceEndEditable -->"; } } ###### There is an important note though: At least with Editable regions, Dreamweaver 6 will accept /either syntax/. So rather than having a "version 4 mode" and "version 6 mode", it may be safer to support both alternatives at the same time. The "dwt.pl" scripts comes from here: http://sys.4s-hosting.ch/bstocker/dwt/