'
}
sub to_gif {
my $img = GD::Simple->new( 130, 20 );
$img->fgcolor('red');
$img->moveTo(15, 15);
$img->string( (shift)->request->path_info );
$img->gif;
}
}
Web::Machine->new( resource => 'YAPC::NA::2012::Example012::Resource' )->to_app;
And of course, you don't have to just provide
text based results ...