% layout 'default';
% title 'Zerobin -- View';
% stash 'styles' => 'hljs zerobin';
% stash 'scripts' => 'jquery highlight zerobin';
<%= link_to l('Create new') => "/zerobin2" %>
% my $paste = (stash 'paste') || {};
% my $syntax = $paste->{syntax};
% my @opts = ($syntax and $syntax ne 'auto') ? (class => $syntax) : ();
<%= tag 'code' => (@opts) => $paste->{data}; %>