Advertisement
Guest User

Untitled

a guest
Feb 6th, 2016
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. $self->hook(
  2. before_dispatch =>
  3. sub {
  4. my $app = shift;
  5. unshift @{$app->static->paths}, $app->home->rel_dir('sites/'. $self->getSiteID);
  6. }
  7. );
  8.  
  9. $self->hook(
  10. after_static =>
  11. sub {
  12. my $app = shift;
  13. shift @{$app->static->paths};
  14. }
  15. );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement