Changeset 316

Show
Ignore:
Timestamp:
03/05/06 14:49:29
Author:
miyagawa
Message:
  • Adding Publish::OPML
  • Added templatize method to $context
Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/plagger/lib/Plagger.pm

    r300 r316  
    241241sub template { 
    242242    my $self = shift; 
    243     Plagger::Template->new($self, (caller)[0]->class_id); 
    244 
     243    my $plugin = shift || (caller)[0]; 
     244    Plagger::Template->new($self, $plugin->class_id); 
     245
     246 
     247sub templatize { 
     248    my($self, $plugin, $file, $vars) = @_; 
     249    my $tt = $self->template($plugin); 
     250    $tt->process($file, $vars, \my $out) or $self->error($tt->error); 
     251    $out; 
     252
     253 
    245254 
    2462551; 
  • trunk/plagger/lib/Plagger/Plugin/Publish/PSP.pm

    r303 r316  
    4040    $out; 
    4141} 
     42 
    42431; 
    4344