Custom template.php class with recursive array scans and forloops. Tested as I created the debug error.html template.