NAME
Bootylicious::Plugin::Gallery - Gallery plugin for Bootylicious
VERSION
version 0.05
SYNOPSIS
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).
DESCRIPTION
Bootylicious::Plugin::Gallery - Gallery plugin for Bootylicious (One-file blog engine software on Mojo steroids!)
ATTRIBUTES
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
144 by default
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
METHODS
hook_finalize
Plugin is run just after bootylicious routes finalization.
AUTHOR
Konstantin Kapitanov, <perlovik at gmail.com>
SEE ALSO
http://getbootylicious.org, bootylicious, Mojo, Mojolicious, Mojolicious::Lite
COPYRIGHT & LICENSE
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.