Revision 3e466ad1
Von Moritz Bunkus vor mehr als 10 Jahren hinzugefügt
SL/Template/Simple.pm | ||
---|---|---|
34 | 34 |
|
35 | 35 |
$self->{$_} = $params{$_} for keys %params; |
36 | 36 |
|
37 |
$self->{variable_content_types} ||= {}; |
|
38 |
$self->{variable_content_types}->{$_} = lc $self->{variable_content_types}->{$_} for keys %{ $self->{variable_content_types} }; |
|
39 |
$self->{default_variable_content_type} = 'text'; |
|
40 |
|
|
37 | 41 |
$self->{error} = undef; |
38 | 42 |
$self->{quot_re} = '"'; |
39 | 43 |
|
... | ... | |
135 | 139 |
|
136 | 140 |
my $value = $self->_get_loop_variable($var, 0, @indices); |
137 | 141 |
$value = $form->parse_amount({ numberformat => $::myconfig{output_numberformat} || $::myconfig{numberformat} }, $value) if $options{NOFORMAT}; |
138 |
$value = $self->format_string($value) unless $options{NOESCAPE};
|
|
142 |
$value = $self->format_string($value, $var) unless $options{NOESCAPE};
|
|
139 | 143 |
|
140 | 144 |
substr($text, $tag_pos, $tag_len, $value); |
141 | 145 |
} |
Auch abrufbar als: Unified diff
SL::Template: Optionen von den Contrllern zum eigentlichen Template-Modul durchleiten