Group
Extension

Matches 3

Mojolicious-Plugin-Tables ( F/FR/FRANKC/Mojolicious-Plugin-Tables-1.06.tar.gz, FRANKC, 2021; MetaCPAN )
Mojolicious-Plugin-Tables/lib/Mojolicious/Plugin/Tables.pm ( view source; MetaCPAN )
|= []}, $val;
    });

    $app->helper(shipped => sub {
        # special stash slot for sending json-able structs to js;
        # get/set logic here cloned from Mojo::Util::_stash.
        my $c = 
edit del nuke navigate/);
    my @crud_posts = (qw/save/);
    my $fmts       = [format=>[qw/html json/]];

    for ($r->under('tables')                          ->to('auth#ok'   )) {
        for ($_-
Mojolicious-Plugin-Tables ( F/FR/FRANKC/Mojolicious-Plugin-Tables-1.06.tar.gz, FRANKC, 2021; MetaCPAN )
Mojolicious-Plugin-Tables/lib/Mojolicious/Plugin/Tables/Controller/Tables.pm ( view source; MetaCPAN )
Mojolicious::Controller';

# 'shipped' is a special stash slot for passing serialisable things to json or templates.
# Other stash slots can be complex objects for use by templates.

sub ok {
    my $
 $error = "tables activity unauthorised";
    $c->fail($error) if (($c->stash('format')||'x') eq 'json');
    $c->add_flash(errors=>$error);
    $c->redirect_to('/');
    return;
}

# more fine-graine
       data            => \@data,
    };

    if (($c->stash('format')||'data') eq 'json') {
        $c->render( json => $bundle );
        return;
    }
    $c->render(data => $c->dumper($bundle));
}
Mojolicious-Plugin-Tables ( F/FR/FRANKC/Mojolicious-Plugin-Tables-1.06.tar.gz, FRANKC, 2021; MetaCPAN )
Mojolicious-Plugin-Tables/lib/Mojolicious/Plugin/Tables/Controller/Auth.pm ( view source; MetaCPAN )
->stash(user_id=>'administrator');
        return 1
    }

    if (($c->stash('format')||'x') eq 'json') {
        $c->fail;
        return;
    }

    $c->add_flash(errors => 'Please sign in first us

Powered by Groonga
Maintained by Kenichi Ishigaki <ishigaki@cpan.org>. If you find anything, submit it on GitHub.