BSD Ports

www/p5-MasonX-Interp-WithCallbacks 1.20 DragonFly

Mason callback support via Params::CallbackRequest

System
DragonFly
Repository
DPorts
Maintainer
[email protected] (as in FreeBSD)
License
ART10, GPLv1+
Categories
perl5, www
Package size
23.4 KiB, 51.4 KiB installed

Description

MasonX::Interp::WithCallbacks subclasses HTML::Mason::Interp in order to provide a Mason callback system built on Params::CallbackRequest. Callbacks may be either code references provided to the C<new()> constructor, or methods defined in subclasses of Params::Callback. Callbacks are triggered either for every request or by specially named keys in the Mason request arguments, and all callbacks are executed at the beginning of a request, just before Mason creates and executes the request component stack.

This module brings support for a sort of plugin architecture based on Params::CallbackRequest to Mason. Mason then executes code before executing any components. This approach allows you to carry out logical processing of data submitted from a form, to affect the contents of the Mason request arguments (and thus the %25ARGS hash in components), and even to redirect or abort the request before Mason handles it.

In the other systems

SystemPortVersion
DragonFlywww/p5-MasonX-Interp-WithCallbacks1.20
FreeBSDwww/p5-MasonX-Interp-WithCallbacks1.20
OpenBSDwww/p5-MasonX-Interp-WithCallbacks1.20
HardenedBSDwww/p5-MasonX-Interp-WithCallbacks1.20
GhostBSDwww/p5-MasonX-Interp-WithCallbacks1.20

Install

Binary package:

pkg install p5-MasonX-Interp-WithCallbacks

From DPorts:

cd /usr/dports/www/p5-MasonX-Interp-WithCallbacks && make install clean

Dependencies

Run dependencies 4

No port depends on this one.