7758a3df87
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. |
||
---|---|---|
.. | ||
DESCR | ||
distinfo | ||
Makefile | ||
PLIST |