The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Mojolicious::Plugin::Obrazi - A static gallery generator (and renderer) for any site.

SYNOPSIS

  # Mojolicious
  $self->plugin('Obrazi');

  # Mojolicious::Lite
  plugin 'Obrazi';

    <!-- in a template - not implemented yet -->
    <%= obrazi(csv_file => 'path/to/obrazi.csv') %>

DESCRIPTION

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.

METHODS

Mojolicious::Plugin::Obrazi inherits all methods from Mojolicious::Plugin and implements the following new ones.

register

  $plugin->register(Mojolicious->new);

Register plugin in Mojolicious application.

HELPERS

obrazi

    <!-- in a template -->
    <%= obrazi(csv_file => 'path/to/obrazi.csv') %>

Renders a gallery section in the current page. Not implemented yet.

NOTES

This plugin requires Perl 5.26+ and Mojolicious 9.17+.

COPYRIGHT

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.

SEE ALSO

Mojolicious::Command::Author::generate::obrazi, Mojolicious, Mojolicious::Guides, Slovo, https://mojolicious.org.