diff --git a/public/vroom.pl b/public/vroom.pl index 1ebfaef..8cefd3d 100755 --- a/public/vroom.pl +++ b/public/vroom.pl @@ -15,6 +15,7 @@ use Digest::MD5 qw(md5_hex); use MIME::Base64; use Email::Sender::Transport::Sendmail; use Encode; +use File::stat; # Used to generate thanks on the about template our $components = { @@ -229,6 +230,13 @@ helper get_random_name => sub { return $name; }; +# return the mtime of a file +helper get_mtime => sub { + my $self = shift; + my ($file) = @_; + return stat($file)->mtime; +}; + any '/' => 'index'; get '/about' => sub { diff --git a/templates/default/header.html.ep b/templates/default/header.html.ep index b14f815..f5e1bee 100644 --- a/templates/default/header.html.ep +++ b/templates/default/header.html.ep @@ -3,8 +3,11 @@