icroTemplate::_PerRequest';
}
1;
=head1 NAME
Catalyst::View::Text::MicroTemplate::PerRequest - JSON View that owns its data
=head1 SYNOPSIS
MyApp->inject_components(
'View::HTML' => {
;
}
sub endpoint :Chained(midpoint) Args(0) {
my ($self, $c) = @_;
$c->view('JSON')->created({
a => 1,
b => 2,
c => 3,
});
}
# template $HOM
tyle view that produces JSON is L<Catalyst::View::JSON::PerRequest>.
In fact this was written so that I could have a view that did HTML with an identical
interface as that JSON view, to make it easier