The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

App::Starter - Application Starter

SYNOPSIS

my $app
    = App::Starter->new(
    { config => ' /tmp/conf/config.yml' } )
    ->create;

# or
# from = 'tmp/a' , replace => { module => 'MyApp' } overwrite config.yml setting.
my $app = App::Starter->new(
    {   config  => '/tmp/conf/config.yml',
        from    => '/tmp/a',
        name    => 'my_app',
        replace => { module => 'MyApp' }
    }
)->create;

# or even you can use ~/.app-sterter so taht you do not need to hve from and config options

#~/.app-starter
#|-- conf
#|   `-- sample.conf
#`-- skel
#    `-- sample
#        |-- bin
#        |   `-- __app__.pl
#        `-- lib
#            `-- __app__
#                `-- Foo.pm
my $app
    = App::Starter->new( { template => 'sample', name => 'foo' } )->create;

DESCRIPTION

you can start your application quickly once you create skeleton with this module. This module only does is rename key to value. in your template file, you can set like this [% key_name %] which replace with value you set in config. and also you can use __key_name__ format as file or directory name which replace as rule you set at config

I recommend to use ~/.app-starter directory to store your app-starter data

CONFIG

name    : my_app  # ${current_dir}/my_app is created as new appication skeleton
from    : /foo/bar/my-skell # where to fine your skel setup. if you use ~/.app-starter then you do not need this.
tag_style : star # SEE ALSO L<Template> TAG_STYLE OPTION
ignore  :   # you want to ignore some of files or directories
   - \.svn
   - \.cvs
replace :   # rule for replace key : value
   module : MyApp

METHODS

new

constructor

create

create starter dir

AUTHOR

Tomohiro Teranishi <tomohiro.teranishi@gmail.com>

dann

COPYRIGHT AND LICENSE

Copyright 2008 Tomohiro Teranishi, All rights reserved.

This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See perlartistic.