Mojolicious-Plugin-Facets

 view release on metacpan or  search on metacpan

Changes  view on Meta::CPAN

Revision history for Perl extension Mojolicious-Plugin-Facets

0.07 2018-05-08T13:14:29Z

    - implemented helper add_facet()
      - to be used at startup() time

0.06 2018-05-08T11:46:30Z

    - implemented helper has_facet()
    - new DEBUG_FACETS env variable

0.05 2018-03-17T10:33:17Z

    - implemented facet_do() helper

0.04 2018-03-14T17:48:35Z

    - implemented path-based facets
    - refactored tests

lib/Mojolicious/Plugin/Facets.pm  view on Meta::CPAN

package Mojolicious::Plugin::Facets;

use Mojo::Base 'Mojolicious::Plugin';
use Mojolicious::Routes;
use Mojolicious::Static;
use Mojolicious::Sessions;
use Mojo::Cache;
use Mojo::Path;
use constant DEBUG => $ENV{DEBUG_FACETS};

our $VERSION = "0.07";


my @facets;

sub register {
    my ($self, $app, $config) = @_;

    $app->hook(around_dispatch => \&_detect_facet);



( run in 0.226 second using v1.01-cache-2.11-cpan-26ccb49234f )