CGI-Application-Plugin-TT
view release on metacpan or search on metacpan
lib/CGI/Application/Plugin/TT.pm view on Meta::CPAN
377378379380381382383384385386387388389390391392393394395396397#
sub
__tt_template_name {
my
$self
=
shift
;
my
$uplevel
=
shift
|| 0;
# the directory is based on the object's package name
my
$dir
= File::Spec->catdir(
split
(/::/,
ref
(
$self
)));
# the filename is the method name of the caller plus
# whatever offset the user asked for
(
caller
(2+
$uplevel
))[3] =~ /([^:]+)$/;
my
$name
= $1;
return
File::Spec->catfile(
$dir
,
$name
.
'.tmpl'
);
}
##
## Private methods
##
sub
_set_object {
my
$self
=
shift
;
( run in 0.239 second using v1.01-cache-2.11-cpan-0d8aa00de5b )