if ($self->{use_template_toolkit}) {
my $additional_params = $::form;
+ if ($self->{custom_tag_style}) {
+ $contents = "[% TAGS $self->{tag_start} $self->{tag_end} %]\n" . $contents;
+ }
+
$::form->init_template->process(\$contents, $additional_params, \$new_contents) || die $::form->template->error;
} else {
$new_contents = $self->parse_block($contents);
my $tag_start = shift;
my $tag_end = shift;
+ $self->{custom_tag_style} = 1;
$self->{tag_start} = $tag_start;
$self->{tag_end} = $tag_end;
$self->{tag_start_qm} = quotemeta $tag_start;