NAME

Eve::TemplateStub - a stub class that replaces the template class with a mock.

SYNOPSIS

use Eve::TemplateStub;
use Eve::Template;

my $mocked_template = Eve::Template->new(
    path => $path_string,
    compile_path => $compile_path_string,
    expiration_interval => $interval_value);

my $output = $template->process(
    file => $file_name, var_hash => $var_hash);

DESCRIPTION

Eve::TemplateStub is a class that provides a mocked template object with limited stubbed templating functionality..

METHODS

mock_template()

Returns a mocked Eve::Template object.

main()

SEE ALSO

Eve::Test
Test::Class

LICENSE AND COPYRIGHT

Copyright 2010-2013 Sergey Konoplev, Igor Zinovyev.

This program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License as published by the Free Software Foundation; or the Artistic License.

See http://dev.perl.org/licenses/ for more information.

AUTHOR

Sergey Konoplev
Igor Zinovyev