mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-15 03:14:23 +00:00
e315b729bb
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>
35 lines
943 B
Makefile
35 lines
943 B
Makefile
# 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>
|