From e315b729bbc39465204700eb6028a13991236003 Mon Sep 17 00:00:00 2001 From: Martin Wilke Date: Fri, 12 Jan 2007 21:54:05 +0000 Subject: 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 subscript notation 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 --- www/Makefile | 1 + www/p5-Catalyst-Plugin-Params-Nested/Makefile | 34 ++++++++++++++++++++++++++ www/p5-Catalyst-Plugin-Params-Nested/distinfo | 3 +++ www/p5-Catalyst-Plugin-Params-Nested/pkg-descr | 23 +++++++++++++++++ www/p5-Catalyst-Plugin-Params-Nested/pkg-plist | 12 +++++++++ 5 files changed, 73 insertions(+) create mode 100644 www/p5-Catalyst-Plugin-Params-Nested/Makefile create mode 100644 www/p5-Catalyst-Plugin-Params-Nested/distinfo create mode 100644 www/p5-Catalyst-Plugin-Params-Nested/pkg-descr create mode 100644 www/p5-Catalyst-Plugin-Params-Nested/pkg-plist (limited to 'www') 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 +# +# $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 + +.if ${PERL_LEVEL} <= 500801 +IGNORE= requires Perl 5.8.1. Install lang/perl5.8, and try again +.endif + +.include 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 + + + +subscript notation + + + +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 -- cgit v1.2.3