Bootylicious::Plugin::Gallery - Gallery plugin for Bootylicious
version 0.07
Configuration is done in bootylicious config file. Parameters are passed to the plugins constructors. Register gallery plugin in a configuration file (bootylicious.conf), add line like this:
# Without params (or with default ones) "plugins" : [ "gallery" ] # OR With params "plugins" : [ "gallery", { "columns" : 3 } ]
Create article (e.g., 20090903-my-super-gallery.pod):
=head1 NAME My foto. Hello! There is my super photo gallery. [ cut ] %INSERT_GALLERY_HERE% I'm gonna make my own! With hookers! And blackjack! =head1 TAGS foto, life
Create directory with photos in publicdir (see in bootylicious.conf publicdir=...), e.g., 20090903-my-super-gallery (same as the article).
Bootylicious::Plugin::Gallery - Gallery plugin for Bootylicious (One-file blog engine software on Mojo steroids!)
public_uri
Set to public image URL (the same directory as bootylicious.conf publicdir, as seen by the web browser)
'/' by default
string_to_replace
String that is replaced by the gallery.
'%INSERT_GALLERY_HERE%' by default
columns
Set this to the number of columns in the thumbnail display.
3 by default
thumb_width
Thumbnail width
144 by default
thumb_height
Thumbnail height
bgcolor
Background color of the thumbnail canvas (will only show if the ratio of the source does not match the ratio of the thumbnail).
'white' by default
padding
Set this to the padding (in pixels) between columns
4 by default
imagetypes
Set list of valid image types.
'png|jpg|jpeg|gif' by default
register
This method will be called by Mojolicious::Plugins at startup time, your plugin should use this to hook into the application.
gallery
Plugin is run just "after_dispatch" hook and make gallery.
Konstantin Kapitanov, <perlovik at gmail.com>
<perlovik at gmail.com>
http://getbootylicious.org, bootylicious, Mojo, Mojolicious, Mojolicious::Lite
Copyright 2009 Konstantin Kapitanov, all rights reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install Bootylicious::Plugin::Gallery, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Bootylicious::Plugin::Gallery
CPAN shell
perl -MCPAN -e shell install Bootylicious::Plugin::Gallery
For more information on module installation, please visit the detailed CPAN module installation guide.