Re: Pluggable designs

From: Date: Fri, 06 Aug 2004 00:10:53 +0000
Subject: Re: Pluggable designs
References: 1 2  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-13978@lists.php.net to get a copy of this message
Jon Wood wrote:
On Fri, 06 Aug 2004 00:46:32 +0200, Olivier Guilyardi <ml@xung.org> wrote:
http://www.oswd.org is a nice designs repository, but what about such designs that would already be "templatized", that is : ready to use ? Better : swapable ? Like a sort of theming framework... There could be categories (online shop, news publishing, database frontend, etc...), so that every designs in a given category obeys to a strict interface definition.
I'm not entirely sure what this is. From what I understand it's a selection of specialized templates designed for specific purposes, in which case it probably doesn't fit in PEAR, which is made for libraries more than designs.
It's about designs as reusable components, and how PEAR can make that possible. Let's take a few examples : http://oswd.org/viewdesign.phtml?id=1638 http://oswd.org/viewdesign.phtml?id=1599 http://oswd.org/viewdesign.phtml?id=1165 (btw, I'm not affiliated to oswd. These guys just have nice XHTML designs) These three designs (and actually many others) are mainly composed of - a title - a menu - some boxed content - a copyright notice Now, given this fact, what about a PEAR package that would : - define a template interface, that is : how a template has to be written, which template syntax and variable names it must use - provide a php api which allows to addMenuItem(), setTitle(), etc... Then, any design which conforms to the template interface defined by the PEAR package could be plugged in a host application that uses the corresponding API. This is "design abstraction". -- og

« previous php.pear.general (#13978) next »