Skip to content

Commit

Permalink
remove template code
Browse files Browse the repository at this point in the history
  • Loading branch information
Vladimir Zatoloka committed Apr 1, 2018
1 parent 344563c commit eda959f
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions app.psgi
Original file line number Diff line number Diff line change
Expand Up @@ -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';

Expand All @@ -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;
Expand Down

0 comments on commit eda959f

Please sign in to comment.