Hi Brian, Try looking into the filter feature in the HTML::Template constructor. It allows you to apply a conversion to the template before you read it in. Hopefully, you'd be able to convert the Dreamweaver template tags into HTML::Template tags. It should be exactly what you are looking for, already built into the module, no mucking needed. :)
Kenny Smith JournalScape.com -----Original Message----- From: Paulsen, Brian [mailto:[EMAIL PROTECTED]] Sent: Thursday, July 11, 2002 4:39 PM To: '[EMAIL PROTECTED]' Subject: RE: [htmltmpl] some dreamweaver / HTML::Template questions I just thought of a third idea, and perhaps this is the best solution... Write a transform subroutine that would take the .dwt file that Dreamweaver generates and convert it into HTML::Template language. This should be fairly trivial and the advantage is that I wouldn't have to muck around with the HTML::Template source. As anybody done this yet? Brian I've gone through some of the archives and looked on the web, and I can't find much of an answer for these.. First some background: I'm involved in creating a bunch of webpages and in the past, this has been done by using CGI.pm to generate the HTML. Naturally (since I'm looking at HTML::Template), I would like to get away from that model. I played with a few technologies to have perl work with HTML (such as HTML::Mason) and so far, HTML::Template looks like a clear winner. However... what would really seal the deal is to have the HTML be something that could be generated and/or edited within Dreamweaver. I decided that it would be best if some creative design people could manipulate HTML and I would be responsible for the dynamic part of the page. I downloaded a trial copy of Dreamweaver MX, and lo and behold, they have support for a templating language... and it looks fairly similar to HTML::Template's language. Unfortunately, though, they aren't identical. Based on my limited experience, there seems to be a few ways to tie them together. 1) Figure out how to extend dreamweaver so that it knows about and can generate HTML::Template code and also enable it to use that code when generating pages from templates. 2) Modify HTML::Template to understand Dreamweaver's DWT files. I know that HTML::DWT is supposed to do this, but it appears geared towards Dreamweaver 4 and dreamweaver has changed the template language. Of the two, I prefer tackling number 2, because I can then tell a developer to use the templating tools already available in dreamweaver and they don't have to download anything new. Any suggestions or comments? Thanks, Brian --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
