Monday, April 28, 2008
Yesterday Garland got a long-overdue update: The page.tpl.php file was updated to use best practices. Now we can finally open up Garland in a workshop scenario and not have to use it as example of the bad practices within a .tpl.php file. This article applies to Drupal 6 and higher, though the theming principles apply to all versions of Drupal.
What’s this about best practices? Let’s compare the before and after of a few of the improvements. Each of the items below are extremely common things you can do to keep your .tpl.php files clean.