Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

file 15 lines (14 sloc) 0.273 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
#!/usr/bin/perl
use Template;
my $app = sub {
  my $tt = Template->new;
  my $out;
  $tt->process('time.tt',
               { time => scalar localtime },
               \$out) or die $tt->error;

  return [
    200,
    [ 'Content-type', 'text/html' ],
    [ $out ]
  ]
};
Something went wrong with that request. Please try again.