logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

Email::MIME::CreateHTML::Resolver::Filesystem - finds resources via the filesystem

Author

       Tony Hennessy, Simon Flack and John Alden with additional contributions by Ricardo Signes <rjbs@cpan.org>
       and Henry Van Styn <vanstyn@cpan.org>

Description

       This is used by Email::MIME::CreateHTML to load resources.

Methods

       $o = new Email::MIME::CreateHTML::Resolver::Filesystem(\%args)
           %args can contain:

           base
               Base directory used to resolve relative filepaths passed to get_resource.

       ($content,$filename,$mimetype,$xfer_encoding) = $o->get_resource($uri)

Name

       Email::MIME::CreateHTML::Resolver::Filesystem - finds resources via the filesystem

Synopsis

               my $o = new Email::MIME::CreateHTML::Resolver::Filesystem(\%args)
               my ($content,$filename,$mimetype,$xfer_encoding) = $o->get_resource($uri)

Todo

        - Currently the MIME type is deduced from the file extension via MIME::Types; given we have the content available, more sophisticated strategies are probably possible

See Also