use strict; use warnings; use Test::More tests => 1; use HTML::FormFu; my $form = HTML::FormFu->new({ tt_args => { INCLUDE_PATH => 'share/templates/tt/xhtml' } }); my $field = $form->element('Radiogroup')->name('foo')->options( [ { label => 'One', attrs => { class => 'foo' }, attrs_xml => { onsubmit => '' }, } ] ); is( "$form", <
EOF