Rudesind::UI - Functions used by the Rudesind UI
my ( $gallery, $image ) = Rudesind::UI::new_from_path( $path ); my $html = Rudesind::UI::text_to_html( $image->caption );
This module contains a few functions needed for Rudesind's Mason UI.
Currently, this module provides two functions:
new_from_path($path)
Given a path based on the current URI, this function determines whether this path is for an image or gallery.
If it is for a gallery, it returns a list consisting of a single Rudesind::Gallery object. If it is for an image, it returns a list consisting of a Rudesind::Gallery and Rudesind::Image object.
Rudesind::Gallery
Rudesind::Image
text_to_html($text)
Given a piece of text (a gallery or image caption), this method formats that text as HTML using Text::WikiFormat, and returns the HTML.
Text::WikiFormat
To install Rudesind, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Rudesind
CPAN shell
perl -MCPAN -e shell install Rudesind
For more information on module installation, please visit the detailed CPAN module installation guide.