perl-Catalyst-Controller-Public - A Public file serving Catalyst Controller

Property Value
Distribution ALT Linux Sisyphus
Repository Autoimports noarch
Package name perl-Catalyst-Controller-Public
Package version 0.004
Package release alt1
Package architecture noarch
Package type rpm
Installed size 28.00 KB
Download size 28.00 KB
Official Mirror
Note: This class just extends the Catalyst::ControllerRole::Public manpage.  All the main
code is in that role.  You can do the same if it makes sense based on your programming
organization needs.
I prefer to have a controller to manage public assets since I like to use $c->uri_for
and similar to construct paths.  Out of the box this controller does what I think is
the mostly right thing, which is it serves public assets using something like
the Plack::App::Directory manpage or the Plack::App::File manpage (if I am in production or not)
from $HOME/root/${controller-namespace} and it also makes it easy to create private
paths to public URLs in the way that makes sense to you.
If you inherit from this you will get a public URL endpoint which is the same as the
controller's namespace.  That will serve files under your `public_path', which just
defaults as already described.
Althought this controller offers some configuration and features, unlike more complex
systems (see the Catalyst::Controller::Assets manpage for example) we do not attempt to full
on 'Rails Asset pipeline' approach, such as building LESS to css or compiling CoffeeScript
to Javascript.  The intention here is to be simple enough for people to use it with
out a lot of documentation pondering.  Also in my experience Javascript developers and
designers prefer to use there own tools and code generation pipelines, over any that
comes bundled with the Catalyst manpage (just an observation).  As a result this is aimed at
serving up files that are ready to go.  The assumption is that your Javascript and designers
will use their desired tools and build static versions of thier code into the correct


Package Version Architecture Repository
perl-Catalyst-Controller-Public - - -


Name Value
/usr/share/perl5 -
perl( >= 2.140.300
rpmlib(PayloadIsLzma) -


Name Value
perl(Catalyst/Controller/ = 0.004
perl-Catalyst-Controller-Public = 0.004-alt1


Type URL
Binary Package perl-Catalyst-Controller-Public-0.004-alt1.noarch.rpm
Source Package perl-Catalyst-Controller-Public-0.004-alt1.src.rpm

Install Howto

  1. Add the following line to /etc/apt/sources.list:
    rpm [Sisyphus] noarch autoimports
    rpm [Sisyphus] noarch autoimports
  2. Update the package index:
    # sudo apt-get update
  3. Install perl-Catalyst-Controller-Public rpm package:
    # sudo apt-get install perl-Catalyst-Controller-Public



See Also

Package Description
perl-Catalyst-Controller-RateLimit-0.28-alt1.noarch.rpm Protect your site from robots
perl-Catalyst-Controller-SOAP-1.25-alt1.noarch.rpm Catalyst SOAP Controller
perl-Catalyst-Controller-SimpleCAS-1.002-alt1.noarch.rpm General-purpose content-addressed storage (CAS) for Catalyst
perl-Catalyst-Controller-Validation-DFV-0.0.8-alt1.noarch.rpm Form validation and refilling
perl-Catalyst-Controller-WrapCGI-0.038-alt1.noarch.rpm Run CGIs in Catalyst
perl-Catalyst-Controller-reCAPTCHA-0.8-alt1.noarch.rpm authenticate people and read books!
perl-Catalyst-ControllerRole-At-0.005-alt1.noarch.rpm Alternative syntax for describing Catalyst routes
perl-Catalyst-ControllerRole-CatchErrors-0.05-alt1.noarch.rpm custom error handling in your controller
perl-Catalyst-Engine-Apache-1.16-alt1_21.noarch.rpm Catalyst Apache Engines
perl-Catalyst-Engine-Embeddable-0.000003-alt1.noarch.rpm Use a Catalyst application as an object
perl-Catalyst-Engine-PSGI-0.13-alt2_10.noarch.rpm PSGI engine for Catalyst
perl-Catalyst-Engine-XMPP2-0.4-alt1.noarch.rpm AnyEvent::XMPP::Connection Catalyst Engine
perl-Catalyst-Enzyme-0.11-alt1.noarch.rpm CRUD framework for Catalyst
perl-Catalyst-Helper-Controller-Scaffold-0.04-alt1.noarch.rpm perl module Catalyst-Helper-Controller-Scaffold
perl-Catalyst-Helper-Controller-Scaffold-HTML-Template-0.04-alt1.noarch.rpm Helper for Scaffolding using HTML::Template