Parent Directory | Revision Log
sweeping changes to include PubSub backend JiftyDBI to make publishing work, re-organize templates into (hopefully) more meaningful hierarchy, and a new Search action to drive it all.
1 | <%args> |
2 | $item_fragment => 'long' |
3 | $coll => undef |
4 | $moniker => 'search' |
5 | </%args> |
6 | <%init> |
7 | |
8 | use Data::Dump qw/dump/; |
9 | |
10 | my $results = Jifty->web->response->result( $moniker ); |
11 | if ( $results and $results->content('search') ) { |
12 | $coll = $results->content('search'); |
13 | } elsif (! $coll) { |
14 | warn "called without results for $moniker"; |
15 | } |
16 | </%init> |
17 | % if ($coll) { |
18 | <div class="results"> |
19 | % while ( my $i = $coll->next ) { |
20 | <& "/fragments/item/$item_fragment", item => $i &> |
21 | % } |
22 | </div> |
23 | % } |
ViewVC Help | |
Powered by ViewVC 1.1.26 |