$type = 'C' if $type =~ /controller/i;
my $appdir = File::Spec->catdir( split /\:\:/, $app );
my $test_path =
- File::Spec->catdir( $FindBin::Bin, '..', 'lib', $appdir,
- 'Controller' );
- $type = $self->{long_type} if -d $test_path;
+ File::Spec->catdir( $FindBin::Bin, '..', 'lib', $appdir, 'C' );
+ $type = $self->{long_type} unless -d $test_path;
$self->{type} = $type;
$self->{name} = $name;
$self->{class} = "$app\::$type\::$name";
__makefile__
use inc::Module::Install;
-name('[% name %]');
+name('[% dir %]');
abstract('Catalyst Application');
author('[% author %]');
version_from('[% path %]');
[% IF long_type == 'Controller' %]
=head1 METHODS
+=cut
+
#
# Uncomment and modify this or add new actions to fit your needs
#