Statocles::Image - A reference to an image
version 0.079
my $img = Statocles::Image->new( src => '/path/to/image.jpg', alt => 'Alternative text', );
This class holds a link to an image, and the attributes required to render its markup. This is used by documents to associate images with the content.
The source URL of the image. Required.
The text to display if the image cannot be fetched or rendered. This is also the text to use for non-visual media.
If missing, the image is presentational only, not content.
The width of the image, in pixels.
The height of the image, in pixels.
The ARIA role for this image. If the "alt" attribute is empty, this attribute defaults to "presentation".
"presentation"
A hash of arbitrary data available to theme templates. This is a good place to put extra structured data like image credits, copyright, or location.
Doug Bell <preaction@cpan.org>
This software is copyright (c) 2016 by Doug Bell.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install Statocles, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Statocles
CPAN shell
perl -MCPAN -e shell install Statocles
For more information on module installation, please visit the detailed CPAN module installation guide.