Mojolicious::Plugin::Obrazi - A static gallery generator (and renderer) for any site.
# Mojolicious $self->plugin('Obrazi'); # Mojolicious::Lite plugin 'Obrazi'; <!-- in a template - not implemented yet --> <%= obrazi(csv_file => 'path/to/obrazi.csv') %>
Mojolicious::Plugin::Obrazi is a Mojolicious plugin that consists of a command — Mojolicious::Command::Author::generate::obrazi, which resizes a set of images and generates html for a gallery and, a not yet wirtten helper which produces HTML from a CSV file found in a directory, containing images. While the command is functional already, the plugin is empty. This is a yet early release. Todo: write the helper.
Mojolicious::Plugin::Obrazi inherits all methods from Mojolicious::Plugin and implements the following new ones.
$plugin->register(Mojolicious->new);
Register plugin in Mojolicious application.
<!-- in a template --> <%= obrazi(csv_file => 'path/to/obrazi.csv') %>
Renders a gallery section in the current page. Not implemented yet.
This plugin requires Perl 5.26+ and Mojolicious 9.17+.
This is free software, licensed under:
The Artistic License 2.0 (GPL Compatible)
The full text of the license can be found in the LICENSE file included with this module.
Mojolicious::Command::Author::generate::obrazi, Mojolicious, Mojolicious::Guides, Slovo, https://mojolicious.org.
To install Mojolicious::Plugin::Obrazi, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Mojolicious::Plugin::Obrazi
CPAN shell
perl -MCPAN -e shell install Mojolicious::Plugin::Obrazi
For more information on module installation, please visit the detailed CPAN module installation guide.