package Gruntmaster::Page::Index;

use 5.014000;
use strict;
use warnings;
use parent qw/Exporter/;
our @EXPORT_OK = qw/generate/;
our $VERSION = '0.001';

use HTML::Template::Compiled;
use Gruntmaster::Page::Common qw/cook_templates reload_templates/;

my %orig_templates = (
  en => <<'HTML',
HTML
);

my %templates = cook_templates %orig_templates, index => 'Gruntmaster 6000';

sub generate{
  %templates = cook_templates %orig_templates, index => 'Gruntmaster 6000' if reload_templates;
  HTML::Template::Compiled->new(scalarref => \$templates{$_[1]})->output
}

1
