summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
e454ca3)
This makes it easier to use this in create_index_pages since
we can save all the filehandle handling.
- my ($self, $action, $page_content) = @_;
+ my ($self, $action, $page_content, $target) = @_;
#use Data::Dumper;
#die Dumper($self, $action, $page_content);
#use Data::Dumper;
#die Dumper($self, $action, $page_content);
@{$page_content->{used_langs}} );
my $txt;
@{$page_content->{used_langs}} );
my $txt;
- $self->process("$self->{format}/$action.tmpl", $page_content, \$txt)
- or die sprintf( "template error: %s", $self->error ); # too late for reporting on-line
-
+ if ($target) {
+ $self->process("$self->{format}/$action.tmpl", $page_content, $target)
+ or die sprintf( "template error: %s", $self->error ); # too late for reporting on-line
+ } else {
+ $self->process("$self->{format}/$action.tmpl", $page_content, \$txt)
+ or die sprintf( "template error: %s", $self->error );
+ }