Revision 1b9d0f70
Von Sven Schöling vor mehr als 11 Jahren hinzugefügt
SL/Template/LaTeX.pm | ||
---|---|---|
17 | 17 |
|
18 | 18 |
sub format_string { |
19 | 19 |
my ($self, $variable) = @_; |
20 |
my $form = $self->{"form"}; |
|
21 | 20 |
|
22 | 21 |
$variable = $main::locale->quote_special_chars('Template/LaTeX', $variable); |
23 | 22 |
|
... | ... | |
257 | 256 |
if ($key eq 'tag-style') { |
258 | 257 |
$self->set_tag_style(split(m/\s+/, $value, 2)); |
259 | 258 |
} |
259 |
if ($key eq 'use-template-toolkit') { |
|
260 |
$self->set_use_template_toolkit($value); |
|
261 |
} |
|
260 | 262 |
} |
261 | 263 |
|
262 | 264 |
sub _parse_config_lines { |
... | ... | |
350 | 352 |
|
351 | 353 |
$self->{"forced_pagebreaks"} = []; |
352 | 354 |
|
353 |
my $new_contents = $self->parse_block($contents); |
|
355 |
my $new_contents; |
|
356 |
if ($self->{use_template_toolkit}) { |
|
357 |
my $additional_params = $::form; |
|
358 |
|
|
359 |
$::form->init_template->process(\$contents, $additional_params, \$new_contents) || die $::form->template->error; |
|
360 |
} else { |
|
361 |
$new_contents = $self->parse_block($contents); |
|
362 |
} |
|
354 | 363 |
if (!defined($new_contents)) { |
355 | 364 |
$main::lxdebug->leave_sub(); |
356 | 365 |
return 0; |
Auch abrufbar als: Unified diff
Erste Version Template Toolkit Druck