[dancer-users] Before Hook hit multiple times.
Rick Bragg
rbragg at gmnet.net
Wed Jan 2 15:58:04 GMT 2013
Hi,
I put a simple test in my before hook:
hook 'before' => sub {
debug "Before Hook";
};
and a couple of quick routes:
#Home Page
get '/' => sub { template 'index'; };
#About Us page
get '/about-us' => sub { template 'about-us'; };
(I am also using Auth::Extensible)
Whenever I hit the home page, I get 3 debug messages in a row in the log.
Whenever I hit the about-up page, I get 2 debug messages in a row in the log.
I thought that any kind of page hook would only be called once. Does anybody know
why the before hook would ever be called more than once?
Rick
More information about the dancer-users
mailing list