From Code to Community: Sponsoring The Perl and Raku Conference 2025 Learn more

#!/usr/bin/env perl
use strict;
eval { require Template; require Template::Stash; };
plan skip_all => 'Template Toolkit required' if $@;
plan tests => 1;
my $results = Data::FormValidator->check( {}, { required => 1 } );
my $tt = Template->new( STASH => Template::Stash->new );
$tt->process( \'[% form.missing %]', { form => $results }, \my $out );
ok( not $tt->error );