% layout 'default'; % title 'Zerobin -- View'; % stash 'styles' => 'hljs zerobin'; % stash 'scripts' => 'jquery highlight zerobin';

<%= l('View paste') %>

<%= link_to l('Create new') => "/zerobin2" %>

% my $paste = (stash 'paste') || {}; % if (not $paste->{syntax} or $paste->{syntax} eq 'plaintext') { %= b(plaintext($paste->{data})); % } elsif ($paste->{syntax} eq 'markdown') { %= b(markdown($paste->{data})); % } else {
<%= tag 'code' => (class => $paste->{syntax}) => $paste->{data}; %>
% }