Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Warning about before template in Dancer 1.3080 fixed. #1

Merged
merged 1 commit into from

2 participants

@mvickers

Added hook to before_template call to get rid of the depreciation warning

Matt.

@dams dams merged commit cb8ed67 into dams:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
This page is out of date. Refresh to see the latest.
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/Dancer/Plugin/FlashMessage.pm
View
2  lib/Dancer/Plugin/FlashMessage.pm
@@ -29,7 +29,7 @@ register flash => sub ($;$) {
return $value;
};
-before_template sub {
+hook before_template => sub {
shift->{$token_name} = { map { my $key = $_; my $value;
( $key, sub { defined $value and return $value;
my $flash = session($session_hash_key) || {};
Something went wrong with that request. Please try again.