]> iEval git - plack-app-gruntmaster.git/blame - lib/Gruntmaster/Page/Learn.pm
Use Redis and reindent code
[plack-app-gruntmaster.git] / lib / Gruntmaster / Page / Learn.pm
CommitLineData
12f5cac9
MG
1package Gruntmaster::Page::Learn;
2
3use 5.014000;
4use strict;
5use warnings;
6use parent qw/Exporter/;
7our @EXPORT_OK = qw/generate/;
8our $VERSION = '0.001';
9
cd9af27e 10use constant TITLE => 'Learn';
12f5cac9 11
12f5cac9 12use HTML::Template::Compiled;
12f5cac9
MG
13use Gruntmaster::Page::Common qw/header footer/;
14
15my %templates = (
16 en => <<'HTML',
cd9af27e
MG
17Install interactive-perl-tutorial from your nearest CPAN mirror. Run <code>cpan App::InteractivePerlTutorial</code>.
18<p>You can also get the source from <a href="http://git.ieval.ro/?p=app-interactiveperltutorial.git">git.ieval.ro</a>
12f5cac9
MG
19HTML
20);
21
22$templates{$_} = header($_, TITLE) . $templates{$_} for keys %templates;
23$templates{$_} .= footer $_ for keys %templates;
24
25sub generate{
cd9af27e 26 HTML::Template::Compiled->new(scalarref => \$templates{$_[1]})->output;
12f5cac9
MG
27}
28
291
This page took 0.027534 seconds and 4 git commands to generate.