Mojolicious::Plugin::CoverDb - Mojolicious Plugin
# Mojolicious $self->plugin('CoverDb'); $self->plugin('CoverDb' => { dir => 'cover_db', route => 'coverdb' }); # Mojolicious::Lite plugin 'CoverDb'; plugin 'CoverDb' => { dir => 'cover_db', route => 'coverdb' };
Mojolicious::Plugin::CoverDb is a Mojolicious plugin to conveniently expose a cover_db directory generated by Devel::Cover. You automatically get coverage.html when going to the exposed route (if the file exists, otherwise, you’get a list of the files).
cover_db
coverage.html
As Devel::Cover is a development tool, the directory is only exposed if MOJO_MODE is development.
MOJO_MODE
development
Mojolicious::Plugin::StaticCache supports the following options.
The directory to expose. It may be an absolute path or a path relative to your mojolicious app’s directory.
Default is cover_db.
The route to the exposed directory.
Default is coverdb.
coverdb
Mojolicious::Plugin::CoverDb inherits all methods from Mojolicious::Plugin and implements the following new ones.
$plugin->register(Mojolicious->new);
Register plugin in Mojolicious application.
The latest source code can be browsed and fetched at:
https://framagit.org/fiat-tux/mojolicious/mojolicious-plugin-coverdb git clone https://framagit.org/fiat-tux/mojolicious/mojolicious-plugin-coverdb.git
Bugs and feature requests will be tracked at:
https://framagit.org/fiat-tux/mojolicious/mojolicious-plugin-coverdb/issues
Luc DIDRY CPAN ID: LDIDRY ldidry@cpan.org https://fiat-tux.fr/
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
The full text of the license can be found in the LICENSE file included with this module.
Mojolicious, Mojolicious::Guides, https://mojolicious.org.
To install Mojolicious::Plugin::CoverDb, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Mojolicious::Plugin::CoverDb
CPAN shell
perl -MCPAN -e shell install Mojolicious::Plugin::CoverDb
For more information on module installation, please visit the detailed CPAN module installation guide.