perl-Apache-Hendrix-0.3.0-alt1.noarch.rpm


Advertisement

Description

perl-Apache-Hendrix - Provides a route-to-sub based web framework

Distribution: ALT Linux Sisyphus
Repository: Autoimports noarch
Package name: perl-Apache-Hendrix
Package version: 0.3.0
Package release: alt1
Package architecture: noarch
Package type: rpm
Installed size: 13.11 KB
Download size: 13.11 KB
Official Mirror: ftp.altlinux.org
use Apache::Hendrix; my $base = '/web_path/base' base($base); # Base for routes form here below template_variable->{base} = $base; # Base for templates "base" template_config->{PRE_PROCESS} = 'header.tt'; template_config->{POST_PROCESS} = 'footer.tt'; template_config->{INCLUDE_PATH} = '/my/path/to/templates/'; get '/' => sub { my ( $params, $apache_request, $this_sub_reference ) = @_; my @articles = get_articles ..... ; return template( 'index.tt', { articles => \@articles, page => 'news', ... } ); }; get '/thing/:param' => sub { ... } post '/post/:param' => sub { ... } get qr/some.*regexp/ => sub { ... }

Alternatives

Provides

  • perl(Apache/Hendrix.pm) = 0.003
  • perl(Apache/Hendrix/Route.pm) = 0.001
  • perl(Apache/Hendrix/Session.pm) = 0.001
  • perl-Apache-Hendrix = 0.3.0-alt1

    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-Apache-Hendrix rpm package:
      # sudo apt-get install perl-Apache-Hendrix

    Files

    • /usr/share/doc/perl-Apache-Hendrix-0.3.0/Changes
    • /usr/share/doc/perl-Apache-Hendrix-0.3.0/README
    • /usr/share/perl5/Apache/Hendrix.pm
    • /usr/share/perl5/Apache/Hendrix/Route.pm
    • /usr/share/perl5/Apache/Hendrix/Session.pm
    Advertisement
    Advertisement