Revision e8c5169f
Von Bernd Bleßmann vor mehr als 4 Jahren hinzugefügt
SL/Presenter/Tag.pm | ||
---|---|---|
11 | 11 |
html_tag input_tag hidden_tag javascript man_days_tag name_to_id select_tag |
12 | 12 |
checkbox_tag button_tag submit_tag ajax_submit_tag input_number_tag |
13 | 13 |
stringify_attributes restricted_html textarea_tag link_tag date_tag |
14 |
); |
|
14 |
div_tag);
|
|
15 | 15 |
our %EXPORT_TAGS = (ALL => \@EXPORT_OK); |
16 | 16 |
|
17 | 17 |
use Carp; |
... | ... | |
354 | 354 |
); |
355 | 355 |
} |
356 | 356 |
|
357 |
sub div_tag { |
|
358 |
my ($content, %params) = @_; |
|
359 |
return html_tag('div', $content, %params); |
|
360 |
} |
|
361 |
|
|
357 | 362 |
1; |
358 | 363 |
__END__ |
359 | 364 |
|
SL/Template/Plugin/L.pm | ||
---|---|---|
82 | 82 |
sub input_number_tag { return _call_presenter('input_number_tag', @_); } |
83 | 83 |
sub textarea_tag { return _call_presenter('textarea_tag', @_); } |
84 | 84 |
sub date_tag { return _call_presenter('date_tag', @_); } |
85 |
sub div_tag { return _call_presenter('div_tag', @_); } |
|
85 | 86 |
|
86 | 87 |
sub _set_id_attribute { |
87 | 88 |
my ($attributes, $name, $unique) = @_; |
... | ... | |
118 | 119 |
return $code; |
119 | 120 |
} |
120 | 121 |
|
121 |
sub div_tag { |
|
122 |
my ($self, $content, @slurp) = @_; |
|
123 |
return $self->html_tag('div', $content, @slurp); |
|
124 |
} |
|
125 |
|
|
126 | 122 |
sub ul_tag { |
127 | 123 |
my ($self, $content, @slurp) = @_; |
128 | 124 |
return $self->html_tag('ul', $content, @slurp); |
Auch abrufbar als: Unified diff
div_tag aus L in Presenter verschoben