2006-08-28 15:56:28 real world example of tag library usage
Could be refined some more but you can see the idea.

( php )
  1  foreach($projects as $project){
2 $location = 'http://dummy.domain.com/trac/'.$project.'/timeline?milestone=on&ticket=on&changeset=on&wiki=on&max=10&daysback=90&format=rss';
3 $feedXml = simplexml_load_file($location);
4
5 $dl = '';
6 foreach ($feedXml->channel->item as $article) {
7 $dl .=
8 _dt( _a(array( 'href' => (string)$article->link), (string)$article->title) . _span($article->pubDate)) .
9 _dd((string)$article->description);
10 }
11
12 echo
13 _a(array('href' => (string)$feedXml->channel->link), _h2((string)$feedXml->channel->title)) .
14 _div( array( 'class' => 'project', 'id' => $project),
15 _div( array( 'class' => 'BorderFix'),
16 _dl($dl)));
17 }
Leave a comment