From 884418c3af50c78272263ba1e959d973ef1ec1e4 Mon Sep 17 00:00:00 2001 From: Mischa POSLAWSKY Date: Fri, 17 Oct 2008 00:00:03 +0000 Subject: [PATCH] more detailed method documentation --- lib/HTML/Form/Simple.pm | 68 ++++++++++++++++++++++++++++++++++++----- 1 file changed, 60 insertions(+), 8 deletions(-) diff --git a/lib/HTML/Form/Simple.pm b/lib/HTML/Form/Simple.pm index f96149f..18be571 100644 --- a/lib/HTML/Form/Simple.pm +++ b/lib/HTML/Form/Simple.pm @@ -252,25 +252,69 @@ HTML::Form::Simple - Generate HTML form elements =head1 DESCRIPTION +Set up a form object with new(). The HTML for the opening and closing +C<<
>> tags are returned by the start() and stop() methods. + +The L, L, L >> with specified name +and value (both are required by HTML specs). + + $input->hidden('name', 'value'); + +As with all methods, a final hash ref can be given to add further attributes. +While rarely needed in this case, it can also be used as an override or +alternative to value and name: + + $input->hidden({name => 'name', value => 'value'}) =item C - $input->text(name => 'default'); +The common C<< >>. + + $input->text('name', 'default'); + +If the I option is set, substitutes a similarly set up C<<