Revision 2447f511
Von Sven Schöling vor mehr als 13 Jahren hinzugefügt
SL/Template/Plugin/L.pm | ||
---|---|---|
my ($self, $tag, $content, @slurp) = @_;
|
||
my $attributes = $self->attributes(@slurp);
|
||
|
||
return "<${tag}${attributes}/>" unless defined($content);
|
||
return "<${tag}${attributes}>" unless defined($content);
|
||
return "<${tag}${attributes}>${content}</${tag}>";
|
||
}
|
||
|
Auch abrufbar als: Unified diff
Wir verwenden kein XHTML sondern HTML, also contentlose tags nicht mit /> zumachen.