Yesterday I finished up the first release of a PEAR package for using Macromedia Dreamweaver templates as PHP objects.
The package is named UNL_DWT (eventually may be renamed HTML_Template_DWT), and is now available on the UNL PEAR Channel server.
This package builds PHP classes for your .dwt files with member variables for editable regions.
This is a simple abstraction of page presentation and programmable content, but is useful in large organizations that use Dreamweaver templates for their page designs.
[Some of you may be asking, why another damn templating engine?]
The problem with other template engines is that they use unique syntax that can’t be sent to a browser without processing, and (without 3rd party plugins) aren’t integrated into major HTML Editing Applications.
Dreamweaver uses HTML comments to define editable content regions which ensures pages can be sent to a browser without any processing, while still allowing the templates to be used in other editors.
Designers can build a site design within Dreamweaver and use that design in static HTML files, pages editable with Macromedia Contribute, and now — programmer friendly PHP objects.
One set of templates can be used by users who understand any web publishing application, used as static (x)html pages, ASP pages, PHP pages, as well as PHP programmers who prefer to use the templates as objects.
[Where is this going?]
This package was a necessary foundation for creating a UNL PEAR channel package for the UNL Templates that can be easily adopted across all of the PHP servers at our University.
We currently distribute a zip file with the Dreamweaver templates to over 120 registered web developers on campus, who use the templates in every application imaginable. Dreamweaver templates suit our needs to use one design across such a wide variety of applications, but for those familiar with PHP it would be easier to distribute the UNL templates as a PEAR package and be able to use them as objects.
- That’s where this is going.
Get the package at http://pear.unl.edu/
Learn more about how the University of Nebraska-Lincoln (UNL) is organizing it’s web developers to create a consistent web design at the university.
http://www.unl.edu/webdevnet/
