-
-
20 Aug 2020 06:19:29 UTC
- Distribution: Mojolicious-Plugin-CoverDb
- Module version: 0.04
- Source (raw)
- Browse (raw)
- Changes
- How to Contribute
- Issues
- Testers (153 / 38 / 0)
- Kwalitee
Bus factor: 1- 94.64% Coverage
- License: perl_5
- Activity
24 month- Tools
- Download (10.84KB)
- MetaCPAN Explorer
- Permissions
- Subscribe to distribution
- Permalinks
- This version
- Latest version
- Dependencies
- Mojolicious
- and possibly others
- Reverse dependencies
- CPAN Testers List
- Dependency graph
NAME
Mojolicious::Plugin::CoverDb - Mojolicious Plugin
SYNOPSIS
# Mojolicious $self->plugin('CoverDb'); $self->plugin('CoverDb' => { dir => 'cover_db', route => 'coverdb' }); # Mojolicious::Lite plugin 'CoverDb'; plugin 'CoverDb' => { dir => 'cover_db', route => 'coverdb' };
DESCRIPTION
Mojolicious::Plugin::CoverDb is a Mojolicious plugin to conveniently expose a
cover_db
directory generated by Devel::Cover. You automatically getcoverage.html
when going to the exposed route (if the file exists, otherwise, you’get a list of the files).As Devel::Cover is a development tool, the directory is only exposed if
MOJO_MODE
isdevelopment
.OPTIONS
Mojolicious::Plugin::StaticCache supports the following options.
dir
The directory to expose. It may be an absolute path or a path relative to your mojolicious app’s directory.
Default is
cover_db
.route
The route to the exposed directory.
Default is
coverdb
.METHODS
Mojolicious::Plugin::CoverDb inherits all methods from Mojolicious::Plugin and implements the following new ones.
register
$plugin->register(Mojolicious->new);
Register plugin in Mojolicious application.
BUGS and SUPPORT
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
AUTHOR
Luc DIDRY CPAN ID: LDIDRY ldidry@cpan.org https://fiat-tux.fr/
COPYRIGHT
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.
SEE ALSO
Module Install Instructions
To install Mojolicious::Plugin::CoverDb, copy and paste the appropriate command in to your terminal.
cpanm Mojolicious::Plugin::CoverDb
perl -MCPAN -e shell install Mojolicious::Plugin::CoverDb
For more information on module installation, please visit the detailed CPAN module installation guide.