
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_uriSet to public image URL (the same directory as bootylicious.conf publicdir, as seen by the web browser)
'/' by default
string_to_replaceString that is replaced by the gallery.
'%INSERT_GALLERY_HERE%' by default
columnsSet this to the number of columns in the thumbnail display.
3 by default
thumb_widthThumbnail width
144 by default
thumb_heightThumbnail height
144 by default
bgcolorBackground 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
paddingSet this to the padding (in pixels) between columns
4 by default
imagetypesSet list of valid image types.
'png|jpg|jpeg|gif' by default

registerThis method will be called by Mojolicious::Plugins at startup time, your plugin should use this to hook into the application.
galleryPlugin is run just "after_dispatch" hook and make gallery.

Konstantin Kapitanov, <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.