[themes] Re: Rapid Theme Development was: Re: [development] Administration Survey: Theme improvements, theme help system, theme mailing list

Bèr Kessels ber at webschuur.com
Tue Dec 13 22:21:43 UTC 2005


Op dinsdag 13 december 2005 20:36, schreef Darrel O'Pry:
> $node->html[modulename] instead of node->body so I can have better
> control of where their output is placed and whether it is displayed or
> not in different contexts...

I prefer $node->modulename[structured]->data

That way we can keep the data untill teh very end of the line. One reason for 
drupals complex theme thing is that we build slices of HTML *all over the 
place*.

In my ideal world there would be absolutely no HTML anywhere. untill it 
reaches theme_page. untill taht point we can add/remove/alter a $page Object.

Then theme_page iterates down and builds up teh page by using sub-theme 
functions like theme_node, theme_block and such things.

This is how Ruby on rails does it, and yes, a lot of ye think ror has its 
flaws, it most certainly has (aka nothing is perfect) but its output system 
is far, far, far more flexible/advanced etc then drupals spaghetti-shaped MVC


-- 
 PGP ber at webschuur.com
  http://www.webschuur.com/sites/webschuur.com/files/ber_webschuur.asc
 PGP berkessels at gmx.net
  http://www.webschuur.com/sites/webschuur.com/files/ber_gmx.asc


More information about the themes mailing list