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 | <%init> |
2 | |
3 | my $region = Jifty::Web::PageRegion->new( |
4 | name => 'results', |
5 | ); |
6 | |
7 | Jifty->subs->add( |
8 | class => 'Result', |
9 | mode => 'Bottom', |
10 | region => 'results', |
11 | render_with => '/fragments/event/results', |
12 | ); |
13 | |
14 | my $search = Jifty->web->new_action( |
15 | class => 'Search', |
16 | moniker => 'search', |
17 | arguments => { %ARGS }, |
18 | sticky_on_success => 1, |
19 | ); |
20 | |
21 | use Data::Dump qw/dump/; |
22 | |
23 | </%init> |
24 | |
25 | <&| '/_elements/wrapper', title => 'Grep - powerful RSS searcher' &> |
26 | |
27 | <div class="right"> |
28 | Remote results: <% $region->render %> |
29 | </div> |
30 | |
31 | <div class="left"> |
32 | <& '/fragments/bookmarklet' &> |
33 | |
34 | <% Jifty->web->form->start %> |
35 | |
36 | <% $search->form_field('content_contains', label => 'Search for') %> |
37 | |
38 | <% $search->button( label => 'Grep' ) %> |
39 | |
40 | <% Jifty->web->form->end %> |
41 | |
42 | <& '/fragments/results', item_fragment => 'long' &> |
43 | |
44 | </div> |
45 | |
46 | </&> |
ViewVC Help | |
Powered by ViewVC 1.1.26 |