Theme Abstraction Pros & Cons

tjholowaychuk - March 6, 2008 - 16:56

Hello, I am sure there is a thread in here somewhere about this ( the search is refusing to function at the moment ) but I would not mind getting in the discussion regarding theme abstraction. It seems like in Drupal 6 we may be taking some of this to far, a simple example being that when we use template files to generate tables, we can no longer use the table export module for these tables.

The table export module

Nick Lewis - March 6, 2008 - 17:41

The table export module doesn't support d6.
http://drupal.org/node/172609/release

As far as the theme layer abstraction, I see no drawbacks other than it sets a higher bar for developers who are new to drupal or perhaps PHP in general. But with that said, experienced developers are helped a great deal by it.

--
"I'm not concerned about all hell breaking loose, but that a PART of hell will break loose... it'll be much harder to detect." - George Carlin
--
Personal: http://www.nicklewis.org
Work: http://www.onnetworks.com

It does not at the moment

tjholowaychuk - March 6, 2008 - 19:46

It does not at the moment but it will later. However that was just an example. IMO certain areas provide some downfalls such as creating image tags manually rather than with theme('image'); because a feature of my sprites module was going to parse through all images displayed on the site and generating sprites with in the specified dimension, but this would not be possible for these image implementations.

For the most part I agree that it is great, but just some portions sketch me out.
____________________________________________________
Tj Holowaychuk

Vision Media
350designs
Design Inspiration

 
 

Drupal is a registered trademark of Dries Buytaert.