use strict;
use warnings;
use Test::More tests => 1;
use Text::Caml;
my $renderer = Text::Caml->new;
my $output = $renderer->render(
'{{foo}}',
{ foo => sub {'bar'}
}
);
is $output => 'bar', 'sub returning "bar" renders as "bar"';
use strict;
use warnings;
use Test::More tests => 1;
use Text::Caml;
my $renderer = Text::Caml->new;
my $output = $renderer->render(
'{{foo}}',
{ foo => sub {'bar'}
}
);
is $output => 'bar', 'sub returning "bar" renders as "bar"';