<%args> $counter => 0 <%init> my $request; $request = Jifty::Request->new( path => Jifty->web->request->path ); $request->argument( counter => $counter + 1 ); my $up = Jifty::Continuation->new( request => $request ); $request = Jifty::Request->new( path => Jifty->web->request->path ); $request->argument( counter => $counter - 1 ); my $down = Jifty::Continuation->new( request => $request ); <&| /_elements/wrapper, title => "Continuations counter demo" &>

The counter is: <% $counter %>

<% Jifty->web->link(call => $down, label => '--') %> <% Jifty->web->link(call => $up, label => '++') %>