Line # Revision Author
1 296 ahitrov <& @call &>
2 %#<pre><% Dumper(\@call) %></pre>
3 %#<pre><% Dumper($request->{project_profile}) %></pre>
4 <%args>
5 </%args>
6 <%init>
7
8 my @path = split('/', $m->dhandler_arg);
9 my @call;
10
11 shift @path;
12 if ( @path ) {
13 @call = (join('/', @path), %ARGS);
14 } else {
15 @call = ('index.html', %ARGS);
16 }
17 &abort404 unless $m->comp_exists($call[0]);
18 if ( $state->development ) {
19 unless ( $path[-1] =~ /\.(jpg|png|gif|swf)$/i ) {
20 $r->content_type('text/html');
21 }
22 }
23
24 </%init>