perl-Mojolicious-Plugin-Subdispatch-0.04-alt2.noarch.rpm


Advertisement

Description

perl-Mojolicious-Plugin-Subdispatch - create requests to your Mojolicious actions

Property Value
Distribution ALT Linux Sisyphus
Repository Autoimports noarch
Package name perl-Mojolicious-Plugin-Subdispatch
Package version 0.04
Package release alt2
Package architecture noarch
Package type rpm
Installed size 4.48 KB
Download size 4.48 KB
Official Mirror ftp.altlinux.org
This Mojolicious plugin creates a `subdispatch` helper, which helps you
creating a request for your actions, and returns the response object with
your fully rendered HTML content.
The interface has some similarities to Mojo::UserAgent:
just use your request method (DELETE, GET, HEAD, POST, PUT) as the method name
and pass the same arguments as you would do for `url_for`:
To build a post request with data, append the data hash at the end:
my $res = app->subdispatch->post('route', foo => 'bar', {with => 'data'});
If you want to access the transaction object around the response, use the
subdispatch helper with arguments like this:
my $tx = app->subdispatch(GET  => 'route', foo => 'bar');
my $tx = app->subdispatch(POST => 'route', foo => 'bar', {with => 'data'});
For some reasons, it seamed important to me to be able to set the base url of
the resulting requests, so this is possible via
plugin 'Subdispatch', base_url => 'http://example.org';
This is an early version and may change without warning. I'll use it to create
static HTML pages from a Mojolicious blog, but if you find another good way
to use it, please let me know!

Alternatives

Package Version Architecture Repository
perl-Mojolicious-Plugin-Subdispatch - - -

Requires

Name Value
/usr/share/perl5 -
perl(Mojo/Base.pm) -
perl(Mojo/UserAgent/Transactor.pm) -
rpmlib(PayloadIsLzma) -

Provides

Name Value
perl(Mojolicious/Plugin/Subdispatch.pm) = 0.040
perl-Mojolicious-Plugin-Subdispatch = 0.04-alt2

Download

Type URL
Binary Package perl-Mojolicious-Plugin-Subdispatch-0.04-alt2.noarch.rpm
Source Package perl-Mojolicious-Plugin-Subdispatch-0.04-alt2.src.rpm

Install Howto

  1. Add the following line to /etc/apt/sources.list:
    
    rpm [Sisyphus] http://ftp.altlinux.org/pub/distributions/ALTLinux/autoimports/Sisyphus noarch autoimports
    rpm [Sisyphus] http://ftp.altlinux.org/pub/distributions/ALTLinux/autoimports/Sisyphus noarch autoimports
    
  2. Update the package index:
    # sudo apt-get update
  3. Install perl-Mojolicious-Plugin-Subdispatch rpm package:
    # sudo apt-get install perl-Mojolicious-Plugin-Subdispatch

Files

Path
/usr/share/doc/perl-Mojolicious-Plugin-Subdispatch-0.04/Changes
/usr/share/doc/perl-Mojolicious-Plugin-Subdispatch-0.04/README
/usr/share/perl5/Mojolicious/
/usr/share/perl5/Mojolicious/Plugin/Subdispatch.pm

See Also

Package Description
perl-Mojolicious-Plugin-Subprocess-1.000-alt1.noarch.rpm Subprocesses in Mojolicious applications
perl-Mojolicious-Plugin-Sugar-0.002-alt1.noarch.rpm Some sweet stuff for Mojolicious
perl-Mojolicious-Plugin-Surveil-0.02-alt1.noarch.rpm Surveil user actions
perl-Mojolicious-Plugin-Tables-0.08-alt1.noarch.rpm Quickstart and grow a Tables-Maintenance Webapp
perl-Mojolicious-Plugin-Tables-scripts-0.08-alt1.noarch.rpm Mojolicious-Plugin-Tables scripts
perl-Mojolicious-Plugin-TagHelpers-MailToChiffre-0.09-alt1.noarch.rpm Obfuscate Email Addresses in Templates
perl-Mojolicious-Plugin-TagHelpers-NoCaching-0.05-alt1.noarch.rpm Force images, styles, js reloading by the browser if they were modified on filesystem
perl-Mojolicious-Plugin-TagHelpers-Pagination-0.06-alt1.noarch.rpm Pagination Helper for Mojolicious
perl-Mojolicious-Plugin-TemplatePerlish-0.002-alt1.noarch.rpm Template::Perlish renderer plugin for Mojolicious
perl-Mojolicious-Plugin-TemplateToolkit-0.002-alt1.noarch.rpm Template Toolkit renderer plugin for Mojolicious
perl-Mojolicious-Plugin-Text-Caml-0.04-alt1.noarch.rpm Mojolicious Plugin
perl-Mojolicious-Plugin-Thumbnail-0.01-alt1.noarch.rpm Use Imager in Mojolicious
perl-Mojolicious-Plugin-TimeAgo-0.06-alt1.noarch.rpm DateTime TimeAgo Mojolicious Plugin
perl-Mojolicious-Plugin-ToolkitRenderer-1.07-alt1.noarch.rpm perl module Mojolicious-Plugin-ToolkitRenderer
perl-Mojolicious-Plugin-Toto-0.25-alt1.noarch.rpm A simple tab and object based site structure
Advertisement
Advertisement