perl-Dancer2-Plugin-Routing-0.01-alt1.noarch.rpm


Advertisement

Description

perl-Dancer2-Plugin-Routing - A dancer2 plugin for configurable routing

Property Value
Distribution ALT Linux Sisyphus
Repository Autoimports noarch
Package name perl-Dancer2-Plugin-Routing
Package version 0.01
Package release alt1
Package architecture noarch
Package type rpm
Installed size 17.26 KB
Download size 17.26 KB
Official Mirror ftp.altlinux.org
Configuration:
plugins:
Routing:
template_key: routing
routes:
main:
route: '/'
package: MyApp
api:
route: '/api'
package: MyApp::API
moderation:
route: '/mod'
package: MyApp::Moderation
admin: '/~admin'
assets:
route: '/assets'
package:  MyApp::Assets
Code:
use Dancer2;
use Dancer2::Plugin::Routing;
use Plack::Builder;
use MyApp;
...
builder {
mount routing_for('main')       => MyApp->to_app             if mount routing_for('main');
mount routing_for('api')        => MyApp::API->to_app        if mount routing_for('api');
mount routing_for('moderation') => MyApp::Moderation->to_app if mount routing_for('moderation');
mount routing_for('admin')      => MyApp::Admin->to_app      if mount routing_for('admin');
mount routing_for('assets')     => MyApp::Assets->to_app     if mount routing_for('assets');
};
...
use Dancer2;
use Dancer2::Plugin::Routing;
get '/do/stuff' => sub {
return root_redirect '/';
};
Template:
<a href="[% routing.admin %]/page">To some admin page</a>

Alternatives

Package Version Architecture Repository
perl-Dancer2-Plugin-Routing - - -

Requires

Name Value
/usr/share/perl5 -
perl(Dancer2/Plugin.pm) -
perl(Dancer2/Plugin/RootURIFor.pm) -
perl(Ref/Util.pm) -
perl(base.pm) -
perl-base >= 1:5.10.0
rpmlib(PayloadIsLzma) -

Provides

Name Value
perl(Dancer2/Plugin/Routing.pm) = 0.010
perl-Dancer2-Plugin-Routing = 0.01-alt1

Download

Type URL
Binary Package perl-Dancer2-Plugin-Routing-0.01-alt1.noarch.rpm
Source Package perl-Dancer2-Plugin-Routing-0.01-alt1.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-Dancer2-Plugin-Routing rpm package:
    # sudo apt-get install perl-Dancer2-Plugin-Routing

Files

Path
/usr/share/doc/perl-Dancer2-Plugin-Routing-0.01/Changes
/usr/share/doc/perl-Dancer2-Plugin-Routing-0.01/LICENSE
/usr/share/doc/perl-Dancer2-Plugin-Routing-0.01/README.md
/usr/share/perl5/Dancer2/
/usr/share/perl5/Dancer2/Plugin/Routing.pm

See Also

Package Description
perl-Dancer2-Plugin-SPID-0.11-alt1.noarch.rpm SPID authentication for Dancer2 web applications
perl-Dancer2-Plugin-SendAs-0.001-alt1.noarch.rpm Dancer2 plugin to send data as specific content type
perl-Dancer2-Plugin-Showterm-0.0.3-alt1.noarch.rpm Replay terminal typescript captures
perl-Dancer2-Plugin-Shutdown-0.002-alt1.noarch.rpm Graceful shutdown your Dancer2 application
perl-Dancer2-Plugin-Shutdown-Redis-0.002-alt1.noarch.rpm Graceful shutdown your Dancer2 application with Redis propagation
perl-Dancer2-Plugin-Sixpack-0.03-alt1.noarch.rpm Dancer2's plugin for WWW::Sixpack
perl-Dancer2-Plugin-Swagger2-0.003-alt1.noarch.rpm A Dancer2 plugin for creating routes from a Swagger2 spec
perl-Dancer2-Plugin-Syntax-GetPost-0.002-alt1.noarch.rpm Syntactic sugar for GET+POST handlers
perl-Dancer2-Plugin-SyntaxHighlight-Perl-0.0009-alt1.noarch.rpm Generate pretty HTML from Perl code in a Dancer2 app
perl-Dancer2-Plugin-Tail-0.017-alt1.noarch.rpm Tail a file from Dancer2
perl-Dancer2-Plugin-UnicodeNormalize-0.04-alt2.noarch.rpm Normalize incoming Unicode parameters
perl-Dancer2-Plugin-reCAPTCHA-0.3-alt1.noarch.rpm Integrate reCAPTCHA into Dancer2 applications
perl-Dancer2-Serializer-CBOR-0.000002-alt1.noarch.rpm CBOR serializer for Dancer2
perl-Dancer2-Serializer-JSONMaybeXS-0.003-alt1.noarch.rpm Serializer for handling JSON data
perl-Dancer2-Serializer-XML-0.04-alt1.noarch.rpm serializer for handling XML data
Advertisement
Advertisement