%doc> $Id: autohandler,v 1.2 Oct 25 20:09:26 CDT 2004 rhizo Exp $ This is a default autohandler that you may choose to use with your photo gallery. %doc> <%method .title>My Website%method> <%method .head_includes> <%init> my $d_arg = $m->dhandler_arg; my ($uri_base) = $r->uri =~ m!^(.+)/(?:$d_arg|index\.html)!; my $js_src = $uri_base . q{/js/faceplant-dist.js}; my $css_src = $uri_base . q{/css/faceplant-dist.css}; %init> %method>