Parent Directory | Revision Log
refactoring: after testing IPC::PubSub with vairous back-ends, it seems that COMET isn't a good choice if you want predictible delivery. It also has problems with delay, because it's a, uh, bus.... However, this refactoring has a good side: code size is reduced and is now easier to handle.
1 | <%args> |
2 | $q |
3 | $feed |
4 | $item_fragment => 'title' |
5 | </%args> |
6 | <%init> |
7 | |
8 | my $fetch = Jifty->web->new_action( |
9 | class => 'Fetch', |
10 | moniker => 'fetch', |
11 | arguments => { |
12 | q => $q, |
13 | feed => $feed, |
14 | item_fragment => $item_fragment, |
15 | } |
16 | ); |
17 | |
18 | $fetch->run or die "can't run?"; |
19 | </%init> |
20 | <& '/fragments/results', |
21 | result => $fetch->result, |
22 | coll => $fetch->result->content('items'), |
23 | item_fragment => $item_fragment, |
24 | q => $q, |
25 | &> |
26 | </div> |
ViewVC Help | |
Powered by ViewVC 1.1.26 |