| 1 | Source: libmasonx-interp-withcallbacks-perl |
| 2 | Maintainer: Debian Perl Group <[email protected]> |
| 3 | Uploaders: gregor herrmann <[email protected]>, |
| 4 | Niko Tyni <[email protected]>, |
| 5 | Florian Schlichting <[email protected]> |
| 6 | Section: perl |
| 7 | Testsuite: autopkgtest-pkg-perl |
| 8 | Priority: optional |
| 9 | Build-Depends: debhelper-compat (= 13), |
| 10 | libmodule-build-perl |
| 11 | Build-Depends-Indep: libcgi-pm-perl <!nocheck>, |
| 12 | libclass-container-perl <!nocheck>, |
| 13 | libhtml-mason-perl <!nocheck>, |
| 14 | libparams-callbackrequest-perl <!nocheck>, |
| 15 | perl |
| 16 | Standards-Version: 4.7.0 |
| 17 | Vcs-Browser: https://salsa.debian.org/perl-team/modules/packages/libmasonx-interp-withcallbacks-perl |
| 18 | Vcs-Git: https://salsa.debian.org/perl-team/modules/packages/libmasonx-interp-withcallbacks-perl.git |
| 19 | Homepage: https://metacpan.org/release/MasonX-Interp-WithCallbacks |
| 20 | Rules-Requires-Root: no |
| 21 | |
| 22 | Package: libmasonx-interp-withcallbacks-perl |
| 23 | Architecture: all |
| 24 | Depends: ${misc:Depends}, |
| 25 | ${perl:Depends}, |
| 26 | libclass-container-perl, |
| 27 | libhtml-mason-perl, |
| 28 | libparams-callbackrequest-perl |
| 29 | Suggests: libapache2-mod-perl2 |
| 30 | Description: Mason callback support via Params::CallbackRequest |
| 31 | MasonX::Interp::WithCallbacks subclasses HTML::Mason::Interp in order to |
| 32 | provide a Mason callback system built on Params::CallbackRequest. |
| 33 | Callbacks may be either code references provided to the new() constructor, |
| 34 | or methods defined in subclasses of Params::Callback. Callbacks are triggered |
| 35 | either for every request or by specially named keys in the Mason request |
| 36 | arguments, and all callbacks are executed at the beginning of a request, just |
| 37 | before Mason creates and executes the request component stack. |
| 38 | . |
| 39 | This module brings support for a sort of plugin architecture based on |
| 40 | Params::CallbackRequest to Mason. Mason then executes code before executing |
| 41 | any components. This approach allows you to carry out logical processing of |
| 42 | data submitted from a form, to affect the contents of the Mason request |
| 43 | arguments (and thus the %ARGS hash in components), and even to redirect or |
| 44 | abort the request before Mason handles it. |