Add fully-qualified provider classname support to View::TT
[catagits/Catalyst-View-TT.git] / t / lib / TestApp / FauxProvider.pm
CommitLineData
51199593 1package TestApp::FauxProvider;
2
3use Template::Constants;
4
5use base qw(Template::Provider);
6
7sub fetch {
8 my $self = shift();
9 my $name = shift();
10
11 my $data = {
12 name => $name,
13 path => $name,
14 text => 'Faux-tastic!',
15 'time' => time(),
16 load => time()
17 };
18
19 my ($page, $error) = $self->_compile($data);
20 return ($page->{'data'}, $error);
21}
22
231;