Catalyst-View-ByCode

 view release on metacpan or  search on metacpan

lib/Catalyst/View/ByCode.pm  view on Meta::CPAN

    } else {
        $c->log->error('Error opening template file $file');
        return; ### FIXME: throw exception is better
    }

    #
    # build some magic code around the template's code
    #
    ### my $include = join("\n", map {"use $_;"} @{$self->include});
    my $now = localtime(time);
    my $mtime = (stat($path))[9];
    my $code = <<PERL;
# auto-generated code - do not modify
# generated by Catalyst::View::ByCode at $now
# original filename: $path

package $package;
use strict;
use warnings;
use utf8;



( run in 0.568 second using v1.01-cache-2.11-cpan-49f99fa48dc )