Update to work with named parameters in new version of Mojo
Instead of "tx" pass the context in the "c" variable
This commit is contained in:
1 parent
44f5312fef
commit
8402f4f597
3 files changed
+13
-7
No files matched your search
+2
-2
@@ -14,10 +14,10 @@ my $mt = MojoX::Renderer::TT->build;
|
||||
my $output;
|
||||
my $rv;
|
||||
|
||||
$rv = $mt->(undef, 't/render/template.tt2', \$output);
|
||||
$rv = $mt->(undef, { path => 't/render/template.tt2', output => \$output });
|
||||
is($rv, 1);
|
||||
is($output, "4\n");
|
||||
|
||||
$rv = $mt->(undef, 't/render/template-error.tt2', \$output);
|
||||
$rv = $mt->(undef, { path => 't/render/template-error.tt2', output => \$output });
|
||||
is($rv, 0);
|
||||
ok($output);
|
||||
Reference in new issue
Block a user