From eda959ff41e0fec71e4794c096489e8314c878ba Mon Sep 17 00:00:00 2001 From: Vladimir Zatoloka Date: Sun, 1 Apr 2018 03:12:43 +0200 Subject: [PATCH] remove template code --- app.psgi | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/app.psgi b/app.psgi index d2d8da8..459b598 100644 --- a/app.psgi +++ b/app.psgi @@ -6,9 +6,6 @@ use warnings; use lib 'lib'; use feature 'say'; -use IO::All; -# use Template; - # TODO: move to the tools pm? use constant DEBUG => $ENV{DEBUG} // $ENV{PLACK_ENV} // '' eq 'development'; @@ -31,19 +28,6 @@ my %static_files = ( '/js/Game.js' => 0, '/js/Dijkstras.js' => 0, ); -my %html = ( - # 'index._.html' => 'index.html', -); - -if (DEBUG) { - # my $tt = Template->new({}); - while (my ($from, $to) = each %html) { - # $tt->process($from, undef, $to); - my $text = io($from)->slurp(); - $text =~ s/\[%(.+?)%\]/eval $1/eg; - io($to)->print($text); - } -} sub { my $env = shift;