Revision 296 (by ahitrov, 2013/03/26 17:59:01) Promosite (anthill) project source
<& @call &>
%#<pre><% Dumper(\@call) %></pre>
%#<pre><% Dumper($request->{project_profile}) %></pre>
<%args>
</%args>
<%init>

  my @path = split('/', $m->dhandler_arg);
  my @call;

  shift @path;
  if ( @path ) {
	@call = (join('/', @path), %ARGS);
  } else {
	@call = ('index.html', %ARGS);
  }
  &abort404	unless $m->comp_exists($call[0]);
  if ( $state->development ) {
	unless ( $path[-1] =~ /\.(jpg|png|gif|swf)$/i ) {
		$r->content_type('text/html');
	}
  }

</%init>