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
_______________________________________________
dancer-users mailing list
dancer-users@dancer.pm
http://lists.preshweb.co.uk/mailman/listinfo/dancer-users