]> iEval git - plack-app-gruntmaster.git/commitdiff
Merge branch 'master' into newmc
authorMarius Gavrilescu <marius@ieval.ro>
Sat, 11 Apr 2015 12:26:16 +0000 (15:26 +0300)
committerMarius Gavrilescu <marius@ieval.ro>
Sat, 11 Apr 2015 12:26:16 +0000 (15:26 +0300)
1  2 
lib/Plack/App/Gruntmaster/HTML.pm

index 8df45ee4f839113259def81fcadf982c14e813d2,bcd1a887cdb20b2b9a09b27021d83e699e78a81d..daf739baf65aa85e025b60d01dede6492219ac66
@@@ -83,16 -86,11 +86,16 @@@ sub _render 
        $_->detach for $tree->look_down(static => $args{static} ? 'no' : 'yes');
        $_->attr('static', undef) for $tree->look_down(sub {$_[0]->attr('static')});
        $_->attr('smap', undef) for $tree->look_down(sub {$_[0]->attr('smap')});
-       $tree->as_HTML;
+       $tree->as_HTML(undef, undef, $optional_end_tags);
  }
  
 +my $logo = read_file 'mclogo.svg';
 +$logo =~ y/\n//d;
 +$logo =~ s/(\s+)/ /g;
 +
  sub process_skel {
        my ($tree, %args) = @_;
 +      $tree->fid('logo')->replace_with(HTML::Element::Library::super_literal $logo);
        $tree->content_handler(
                title   =>         $args{title},
                content => literal $args{meat});
This page took 0.026854 seconds and 4 git commands to generate.