lib/Gitalist/ContentMangler/Transformer/SyntaxHighlight.pm untested

filter: Statementstmt 0.0% 0 / 9 Branchbran 0.0% 0 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 1 Podpod n/a totaltotal 0.0% 0 / 12 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
CRAP 2.0
1 use MooseX::Declare;
2  
3 class Gitalist::ContentMangler::Transformer::SyntaxHighlight {
4 method transform($c, $config) {
5 $c->stash(
6 syntax_css => $c->uri_for("/static/css/syntax/$config->{css}.css"),
7 mangled => 1,
8 );
9 for (grep $_, $c->stash->{blobs} ? @{$c->stash->{blobs}} : $c->stash->{blob}) {
10 $_ = $c->view('SyntaxHighlight')->render($c, $_, $config);
11 }
12 }
13 }