]> iEval git - gruntmaster-page.git/blame - lib/Gruntmaster/Page/Index.pm
Use Redis and reindent code
[gruntmaster-page.git] / lib / Gruntmaster / Page / Index.pm
CommitLineData
42546e6c
MG
1package Gruntmaster::Page::Index;
2
3use 5.014000;
4use strict;
5use warnings;
6use parent qw/Exporter/;
7our @EXPORT_OK = qw/generate/;
8our $VERSION = '0.001';
9
10use constant TITLE => 'Gruntmaster 6000';
11
42546e6c 12use HTML::Template::Compiled;
832cb45e 13use Gruntmaster::Page::Common qw/header footer/;
42546e6c
MG
14
15my %templates = (
16 en => <<'HTML',
17HTML
18);
19
20$templates{$_} = header($_, TITLE) . $templates{$_} for keys %templates;
21$templates{$_} .= footer $_ for keys %templates;
22
23sub generate{
cd9af27e 24 HTML::Template::Compiled->new(scalarref => \$templates{$_[1]})->output
42546e6c
MG
25}
26
271
This page took 0.023475 seconds and 4 git commands to generate.