pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/www/p5-CGI-FormBuilder Updated to version 3.0501.
details: https://anonhg.NetBSD.org/pkgsrc/rev/51513b4e2694
branches: trunk
changeset: 528375:51513b4e2694
user: heinz <heinz%pkgsrc.org@localhost>
date: Mon Apr 30 21:36:24 2007 +0000
description:
Updated to version 3.0501.
Pkgsrc changes:
- Suffix changed from the default (.tar.gz) to .tgz.
- Marked the package as supporting installation to DESTDIR.
Changes since version 3.0302:
=============================
VERSION 3.0501
Bugfix release to repair a memory leak and a few "other" field edge
cases.
VERSION 3.05
Just a short time after 3.04, several new features evolved very quickly:
Fieldset support
A new "fieldsets" option to "new()" and a "fieldset" option to the
"field()" method can be used to organize your form into sections.
Currently works with the built-in "<table>" and new "<div>" renderer
only, but template support is in the works.
Div rendering
In addition to the builtin "<table>" rendering module, a new "Div"
rendering template has been included as well. If you select this, you
get a table-free form which you can manipulate using stylesheets:
$form->new(template => {type => 'div'});
This provides a couple additional benefits, like separate divs for every
submit button.
Additional classes
A couple additional CSS classes were added, wrapping around the fields
as a unit for better styling. The "<form>" tag now gets a ".fb_form"
style as well.
Fixed HTML::Template support
A couple bugs were introduced in 3.04 that have been fixed, and more
tests added.
VERSION 3.04
In addition to the below features, a new Catalyst FormBuilder plugin is
available on CPAN, "Catalyst::Plugin::FormBuilder".
New $form->prepare() method
You can now use "$form->prepare()" to get back an expanded hashref just
before "$form->render()" is called. This allows you to use FormBuilder
with Catalyst or other frameworks more easily, where the rendering is
done elsewhere:
my %expansion = $form->prepare;
This could be passed directly to, say, Template Toolkit without having
to use FormBuilder's Template Toolkit support.
New "inflate" option to field()
This is used the convert fields on the fly into objects or other values.
For example, you could convert a "date" field into a DateTime object.
Nice patch from Mark Hedges, check it out.
Turkish messages
Thanks to Recai Oktas.
Added "missing" property for fields
This can be queried in templates. To see if a field is missing
altogether, you can check "field.missing" or "missing-field" depending
on your template engine of choice.
Removal of custom "puke" and "belch"
FormBuilder now uses "Carp" and @CARP_NOT to handle its errors. As such,
you will probably notice some differences in error output. The benefit
is that setting "debug" will give you a stack trace on fatal errors.
CGI::FormBuilder::Template::Builtin
Moved the "render_builtin()" method to the above module, to unify the
rendering schemes.
New FORMBUILDER_DEBUG environment variable
Setting this has the same effect as using the "debug" option.
Removal of excess documentation
Removed all the stub docs from "Field::*" and "Messages::*" to make CPAN
happy.
diffstat:
www/p5-CGI-FormBuilder/Makefile | 7 +++++--
www/p5-CGI-FormBuilder/distinfo | 8 ++++----
2 files changed, 9 insertions(+), 6 deletions(-)
diffs (36 lines):
diff -r 5c452d963c5f -r 51513b4e2694 www/p5-CGI-FormBuilder/Makefile
--- a/www/p5-CGI-FormBuilder/Makefile Mon Apr 30 21:34:03 2007 +0000
+++ b/www/p5-CGI-FormBuilder/Makefile Mon Apr 30 21:36:24 2007 +0000
@@ -1,14 +1,17 @@
-# $NetBSD: Makefile,v 1.11 2007/03/16 20:35:21 wiz Exp $
+# $NetBSD: Makefile,v 1.12 2007/04/30 21:36:24 heinz Exp $
-DISTNAME= CGI-FormBuilder-3.0302
+DISTNAME= CGI-FormBuilder-3.0501
PKGNAME= p5-${DISTNAME}
CATEGORIES= www perl5
MASTER_SITES= ${MASTER_SITE_PERL_CPAN:=CGI/}
+EXTRACT_SUFX= .tgz
MAINTAINER= pkgsrc-users%NetBSD.org@localhost
COMMENT= Perl5 module for building HTML forms
HOMEPAGE= http://www.formbuilder.org/
+PKG_DESTDIR_SUPPORT= user-destdir
+
PERL5_PACKLIST= auto/CGI/FormBuilder/.packlist
DEPENDS+= p5-HTML-Template>=2.6:../../www/p5-HTML-Template
diff -r 5c452d963c5f -r 51513b4e2694 www/p5-CGI-FormBuilder/distinfo
--- a/www/p5-CGI-FormBuilder/distinfo Mon Apr 30 21:34:03 2007 +0000
+++ b/www/p5-CGI-FormBuilder/distinfo Mon Apr 30 21:36:24 2007 +0000
@@ -1,5 +1,5 @@
-$NetBSD: distinfo,v 1.5 2007/03/16 20:35:21 wiz Exp $
+$NetBSD: distinfo,v 1.6 2007/04/30 21:36:24 heinz Exp $
-SHA1 (CGI-FormBuilder-3.0302.tar.gz) = 90fd850cfdc96fe3f4d271bd55c74dd0466fa791
-RMD160 (CGI-FormBuilder-3.0302.tar.gz) = 995efe463de9c9d789e3a9bf0c409adfe2d09e60
-Size (CGI-FormBuilder-3.0302.tar.gz) = 139828 bytes
+SHA1 (CGI-FormBuilder-3.0501.tgz) = f682cad5f66c7b545c31605d521340e3f0c15ac5
+RMD160 (CGI-FormBuilder-3.0501.tgz) = 94e2dd395b87071c8dc72276026770e565016463
+Size (CGI-FormBuilder-3.0501.tgz) = 167585 bytes
Home |
Main Index |
Thread Index |
Old Index