Skip to content

Commit

Permalink
Added tt to App class
Browse files Browse the repository at this point in the history
  • Loading branch information
davorg committed Nov 30, 2019
1 parent 51e0ac5 commit 405bc7b
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions lib/TwittElection/App.pm
Expand Up @@ -10,6 +10,8 @@ use LWP::Simple;
use Text::CSV_XS;
use DateTime;
use URI;
use FindBin '$Bin';
use Template;

use TwittElection::Twitter;
use TwittElection::Schema;
Expand Down Expand Up @@ -45,6 +47,21 @@ sub _build_twitter {
return $t;
}

has tt => (
is => 'ro',
isa => 'Template',
lazy_build => 1,
);

sub _build_tt {
return Template->new({
ABSOLUTE => 1,
INCLUDE_PATH => "$Bin/../ttlib",
OUTPUT_PATH => "$Bin/../docs",
ENCODING => 'utf8',
});
}

has schema => (
is => 'ro',
isa => 'TwittElection::Schema',
Expand Down

0 comments on commit 405bc7b

Please sign in to comment.