The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

Mojolicious::Plugin::Images::Util

VERSION

version 0.007

SYNOPSIS

  use Mojolicious::Plugin::Images::Util ':all';

DESCRIPTION

Some convinient method for plugin

FUNCTIONS

expand_static ($dir, $url_prefix, $app)

Expands application's static->paths without duplicates

calc_static ($dir, $url_prefix, $home)

Calculate which path should be added to the static paths

install_route ($app, $moniker, $opts)

Install route for serving images.

check_id ($id)

Security checks of id. By default only i</^[\ \-\w\/]+$/> allowed

check_dir ($dir, $app)

Check directory. Allow directory outside of application parent tree (security for dummies)

plugin_log ($app, $tmpl, @args)

Prints debug log using sprintf

AUTHOR

alexbyk <alexbyk@cpan.org>

COPYRIGHT AND LICENSE

This software is copyright (c) 2014 by alexbyk.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.