|
|
@ -10,10 +10,14 @@ |
|
|
|
</span> |
|
|
|
</span> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<br/> |
|
|
|
<br/> |
|
|
|
|
|
|
|
<div class="paste"> |
|
|
|
% my $paste = (stash 'paste') || {}; |
|
|
|
% my $paste = (stash 'paste') || {}; |
|
|
|
% my $syntax = $paste->{syntax}; |
|
|
|
% if (not $paste->{syntax} or $paste->{syntax} eq 'plaintext') { |
|
|
|
% my @opts = ($syntax and $syntax ne 'auto') ? (class => $syntax) : (); |
|
|
|
%= b(plaintext($paste->{data})); |
|
|
|
<div> |
|
|
|
% } elsif ($paste->{syntax} eq 'markdown') { |
|
|
|
<pre><%= tag 'code' => (@opts) => $paste->{data}; %></pre> |
|
|
|
%= b(markdown($paste->{data})); |
|
|
|
|
|
|
|
% } else { |
|
|
|
|
|
|
|
<pre><%= tag 'code' => (class => $paste->{syntax}) => $paste->{data}; %></pre> |
|
|
|
|
|
|
|
% } |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|