Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Added hook to before_template call to get rid of the depreciation war…

…ning
  • Loading branch information...
commit 59d021cb79612d888e0cf8cfc52bfb5f72186c18 1 parent 0c763e9
Matthew Vickers authored October 28, 2011

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. 2  lib/Dancer/Plugin/FlashMessage.pm
2  lib/Dancer/Plugin/FlashMessage.pm
@@ -29,7 +29,7 @@ register flash => sub ($;$) {
29 29
     return $value;
30 30
 };
31 31
 
32  
-before_template sub {
  32
+hook before_template => sub {
33 33
     shift->{$token_name} = {  map { my $key = $_; my $value;
34 34
                                     ( $key, sub { defined $value and return $value;
35 35
                                                   my $flash = session($session_hash_key) || {};

0 notes on commit 59d021c

Please sign in to comment.
Something went wrong with that request. Please try again.