Parent Directory | Revision Log
huge sweeping changes including: PubSub infrastructure and well results :-)
1 | <%ARGS> |
2 | $event => undef |
3 | $item => undef |
4 | </%ARGS> |
5 | <%init> |
6 | |
7 | die "need event or item!" unless ($event or $item); |
8 | |
9 | # unpack item from event |
10 | $item = $$event if ($event); |
11 | |
12 | die "don't have item" unless ($item); |
13 | |
14 | use Data::Dump qw/dump/; |
15 | warn "item = ",dump($item); |
16 | |
17 | </%init> |
18 | |
19 | <div class="result"> |
20 | |
21 | <a class="title" href="<% $item->link %>"><% $item->title %></a> |
22 | <span class="feed">in <% $item->in_feed->title %></span> |
23 | |
24 | <div class="content"> |
25 | <% $item->content | n %> |
26 | </div> |
27 | |
28 | % foreach my $f ( qw/category author issued modified/ ) { |
29 | % if ( $item->$f ) { |
30 | <span class="<% $f %>"><% $item->$f %></span> |
31 | % } |
32 | % } |
33 |
ViewVC Help | |
Powered by ViewVC 1.1.26 |