| MojoMojo documentation | Contained in the MojoMojo distribution. |
MojoMojo::Formatter::File::Image - Image formatter
Image is not formatted in xhtml. The controller Image is used instead.
Can format Pod File
takes Text and renders it as XHTML.
Daniel Brosseau <dab@catapulse.org>
This module is licensed under the same terms as Perl itself.
| MojoMojo documentation | Contained in the MojoMojo distribution. |
package MojoMojo::Formatter::File::Image; use base qw/MojoMojo::Formatter/;
sub can_format { my $self = shift; my $type = shift; return 1 if ( $type =~ /png|jpg|gif|tiff/ ); return 0; }
sub to_xhtml { my ( $self, $text ) = @_; my $result; return "Image can not be formatted in XHTML"; }
1;