% layout 'default'; % title 'Imgbin -- View'; % stash 'styles' => 'zerobin';

<%= l('Latest images') %>

<%= link_to l('Upload more') => "/imgbin" %>

% my $images = stash('images') || []; % foreach my $i (@{ $images }) { % my $tooltip = sprintf "%s / %dx%d / %.1f kb", % $i->{name}, $i->{width}, $i->{height}, $i->{size} / 1024;
<%= link_to $i->{url} => begin %> <%= image $i->{path}, title => $tooltip %> <% end %>
% }