MojoMojo::Formatter::File::Image - Image formatter


MojoMojo documentation Contained in the MojoMojo distribution.

Index


Code Index:

NAME

Top

MojoMojo::Formatter::File::Image - Image formatter

DESCRIPTION

Top

Image is not formatted in xhtml. The controller Image is used instead.

METHODS

Top

can_format

Can format Pod File

to_xhtml

takes Text and renders it as XHTML.

SEE ALSO

Top

MojoMojo,Module::Pluggable::Ordered

AUTHORS

Top

Daniel Brosseau <dab@catapulse.org>

LICENSE

Top

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;