Changeset 911

Show
Ignore:
Timestamp:
06/07/06 03:36:53
Author:
miyagawa
Message:

Planet: Addes sixapart-std template
Fixes #283

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/plagger/assets/plugins/Publish-Planet/default/template/index.tt

    r456 r911  
    55  <head> 
    66    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> 
     7    <meta name="generator" contnet="Plagger [% context.VERSION %]" /> 
    78    <link rel="alternate" type="application/atom+xml" title="Atom: [% feed.title %]" href="smartfeed_all.atom" /> 
    89    <link rel="alternate" type="application/rss+xml" title="RSS: [% feed.title %]" href="smartfeed_all.rss" /> 
  • trunk/plagger/lib/Plagger/Plugin/Publish/Planet.pm

    r683 r911  
    6363        feed  => $feed, 
    6464        members => [ $context->subscription->feeds ], 
     65        context => $context, 
    6566    }, \my $out) or $context->error($tt->error); 
    6667    $out; 
     
    8687sub _apply_skin { 
    8788    my ($self, $context, $skin_name, $output_dir) = @_; 
    88      
    8989    $context->log(debug => "Assets Directory: " . $self->assets_dir); 
    90      
    91     rcopy( 
    92         File::Spec->catfile($self->assets_dir, $skin_name, 'static'), 
    93         $output_dir, 
    94     ) or $context->error("rcopy: $!"); 
     90 
     91    my $static = File::Spec->catfile($self->assets_dir, $skin_name, 'static'); 
     92    if (-e $static) { 
     93        rcopy($static, $output_dir) or $context->log(error => "rcopy: $!"); 
     94    } 
    9595} 
    9696