html_tag input_tag hidden_tag javascript man_days_tag name_to_id select_tag
checkbox_tag button_tag submit_tag ajax_submit_tag input_number_tag
stringify_attributes restricted_html textarea_tag link_tag date_tag
- div_tag radio_button_tag);
+ div_tag radio_button_tag img_tag);
our %EXPORT_TAGS = (ALL => \@EXPORT_OK);
use Carp;
return html_tag('div', $content, %params);
}
+sub img_tag {
+ my (%params) = @_;
+
+ $params{alt} ||= '';
+
+ return html_tag('img', undef, %params);
+}
+
1;
__END__
sub date_tag { return _call_presenter('date_tag', @_); }
sub div_tag { return _call_presenter('div_tag', @_); }
sub radio_button_tag { return _call_presenter('radio_button_tag', @_); }
+sub img_tag { return _call_presenter('img_tag', @_); }
sub _set_id_attribute {
my ($attributes, $name, $unique) = @_;
SL::Presenter::Tag::_set_id_attribute($attributes, $name, $unique);
}
-sub img_tag {
- my ($self, %options) = _hashify(1, @_);
-
- $options{alt} ||= '';
-
- return $self->html_tag('img', undef, %options);
-}
-
sub ul_tag {
my ($self, $content, @slurp) = @_;
return $self->html_tag('ul', $content, @slurp);