diff options
author | miwi <miwi@FreeBSD.org> | 2007-01-13 05:54:05 +0800 |
---|---|---|
committer | miwi <miwi@FreeBSD.org> | 2007-01-13 05:54:05 +0800 |
commit | 974bd0c7e9934d6e7303cd5c7e62ccbca7916a78 (patch) | |
tree | 0c8b0f57244fbe8b06a22480b84caf9ae071ad9f /www | |
parent | 812a268120e1758b5442f779e85f3f39bcea1ef6 (diff) | |
download | freebsd-ports-gnome-974bd0c7e9934d6e7303cd5c7e62ccbca7916a78.tar.gz freebsd-ports-gnome-974bd0c7e9934d6e7303cd5c7e62ccbca7916a78.tar.zst freebsd-ports-gnome-974bd0c7e9934d6e7303cd5c7e62ccbca7916a78.zip |
Ruby on Rails has a nice feature to create nested parameters that help
with the organization of data in a form - parameters can be an
arbitrarily deep nested structure.
The way this structure is denoted is that when you construct a form the
field names have a special syntax which is parsed.
This plugin supports two syntaxes:
dot notation
<input name="foo.bar.gorch" />
subscript notation
<input name="foo[bar][gorch]" />
When reading query parameters from $c->req you can now access all the
items starting with "foo" as one entity using $c->req->param('foo');.
Each subitem, denoted by either the dot or the square brackets, will be
returned as a further deeper hashref.
WWW: http://search.cpan.org/dist/Catalyst-Plugin-Params-Nested
PR: ports/107785
Submitted by: Fernan Aguero <fernan at iib.unsam.edu.ar>
Diffstat (limited to 'www')
-rw-r--r-- | www/Makefile | 1 | ||||
-rw-r--r-- | www/p5-Catalyst-Plugin-Params-Nested/Makefile | 34 | ||||
-rw-r--r-- | www/p5-Catalyst-Plugin-Params-Nested/distinfo | 3 | ||||
-rw-r--r-- | www/p5-Catalyst-Plugin-Params-Nested/pkg-descr | 23 | ||||
-rw-r--r-- | www/p5-Catalyst-Plugin-Params-Nested/pkg-plist | 12 |
5 files changed, 73 insertions, 0 deletions
diff --git a/www/Makefile b/www/Makefile index 1f661824a456..1cd347025602 100644 --- a/www/Makefile +++ b/www/Makefile @@ -574,6 +574,7 @@ SUBDIR += p5-Catalyst-Plugin-HTML-Widget SUBDIR += p5-Catalyst-Plugin-I18N SUBDIR += p5-Catalyst-Plugin-PageCache + SUBDIR += p5-Catalyst-Plugin-Params-Nested SUBDIR += p5-Catalyst-Plugin-Pluggable SUBDIR += p5-Catalyst-Plugin-Prototype SUBDIR += p5-Catalyst-Plugin-Session diff --git a/www/p5-Catalyst-Plugin-Params-Nested/Makefile b/www/p5-Catalyst-Plugin-Params-Nested/Makefile new file mode 100644 index 000000000000..4f62447a073e --- /dev/null +++ b/www/p5-Catalyst-Plugin-Params-Nested/Makefile @@ -0,0 +1,34 @@ +# New ports collection makefile for: www/p5-Catalyst-Plugin-Params-Nested +# Date created: 28 Dec 2006 +# Whom: Fernan Aguero <fernan@iib.unsam.edu.ar> +# +# $FreeBSD$ +# + +PORTNAME= Catalyst-Plugin-Params-Nested +PORTVERSION= 0.02 +CATEGORIES= www perl5 +MASTER_SITES= ${MASTER_SITE_PERL_CPAN} +MASTER_SITE_SUBDIR= Catalyst +PKGNAMEPREFIX= p5- + +MAINTAINER= fernan@iib.unsam.edu.ar +COMMENT= Nested params (ala Ruby on Rails or PHP-style param arrays) + +BUILD_DEPENDS= p5-CGI-Expand>=1.06:${PORTSDIR}/www/p5-CGI-Expand \ + p5-Test-MockObject>=0:${PORTSDIR}/devel/p5-Test-MockObject +RUN_DEPENDS= ${BUILD_DEPENDS} \ + p5-Catalyst-Runtime>=5.7000:${PORTSDIR}/www/p5-Catalyst-Runtime + +PERL_CONFIGURE= yes + +MAN3= Catalyst::Plugin::Params::Nested.3 \ + Catalyst::Plugin::Params::Nested::Expander.3 + +.include <bsd.port.pre.mk> + +.if ${PERL_LEVEL} <= 500801 +IGNORE= requires Perl 5.8.1. Install lang/perl5.8, and try again +.endif + +.include <bsd.port.post.mk> diff --git a/www/p5-Catalyst-Plugin-Params-Nested/distinfo b/www/p5-Catalyst-Plugin-Params-Nested/distinfo new file mode 100644 index 000000000000..c09efd08bca7 --- /dev/null +++ b/www/p5-Catalyst-Plugin-Params-Nested/distinfo @@ -0,0 +1,3 @@ +MD5 (Catalyst-Plugin-Params-Nested-0.02.tar.gz) = 96a048308a51ca8e79789522f0a64522 +SHA256 (Catalyst-Plugin-Params-Nested-0.02.tar.gz) = 28e1a0b4d42c4ae428b7929aaf8464c3adc23d2ab08c0f1e0e7f91d035f8bd40 +SIZE (Catalyst-Plugin-Params-Nested-0.02.tar.gz) = 4043 diff --git a/www/p5-Catalyst-Plugin-Params-Nested/pkg-descr b/www/p5-Catalyst-Plugin-Params-Nested/pkg-descr new file mode 100644 index 000000000000..dafc48ce11c3 --- /dev/null +++ b/www/p5-Catalyst-Plugin-Params-Nested/pkg-descr @@ -0,0 +1,23 @@ +Ruby on Rails has a nice feature to create nested parameters that help +with the organization of data in a form - parameters can be an +arbitrarily deep nested structure. + +The way this structure is denoted is that when you construct a form the +field names have a special syntax which is parsed. + +This plugin supports two syntaxes: + +dot notation + + <input name="foo.bar.gorch" /> + +subscript notation + + <input name="foo[bar][gorch]" /> + +When reading query parameters from $c->req you can now access all the +items starting with "foo" as one entity using $c->req->param('foo');. +Each subitem, denoted by either the dot or the square brackets, will be +returned as a further deeper hashref. + +WWW: http://search.cpan.org/dist/Catalyst-Plugin-Params-Nested diff --git a/www/p5-Catalyst-Plugin-Params-Nested/pkg-plist b/www/p5-Catalyst-Plugin-Params-Nested/pkg-plist new file mode 100644 index 000000000000..914b10c72e4a --- /dev/null +++ b/www/p5-Catalyst-Plugin-Params-Nested/pkg-plist @@ -0,0 +1,12 @@ +%%SITE_PERL%%/%%PERL_ARCH%%/auto/Catalyst/Plugin/Params/Nested/.packlist +%%SITE_PERL%%/Catalyst/Plugin/Params/Nested.pm +%%SITE_PERL%%/Catalyst/Plugin/Params/Nested/Expander.pm +@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/Catalyst/Plugin/Params/Nested +@dirrmtry %%SITE_PERL%%/Catalyst/Plugin/Params/Nested +@dirrmtry %%SITE_PERL%%/Catalyst/Plugin/Params +@dirrmtry %%SITE_PERL%%/Catalyst/Plugin +@dirrmtry %%SITE_PERL%%/Catalyst +@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/Catalyst/Plugin/Params/Nested +@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/Catalyst/Plugin/Params +@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/Catalyst/Plugin +@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/Catalyst |