CGI-Ex-Recipes - A usage example for CGI::Ex::App! This small but relatively complete application was inspired by the examples, given by Paul in his documentation. You are encouraged to play with it or/and use it as a starting point for far more complex and customized applications. INSTALLATION Just place 'erecipes' into some viewable by the server dir with option 'AllowOverride All'. Fire up the server and point the browser to http:yourhost/your/destination/path/index.cgi. NOTE At any later time you can also run: perl erecipes/install.pl src=erecipes dest=/your/destination/path Where the example application should be installed? [/home/cpanrun/recipes] /home/cpanrun/recipes Checking if your kit is complete... Warning: the following files are missing in your kit: .cvsignore erecipes/.htaccess erecipes/conf/.htaccess erecipes/data/.htaccess erecipes/logs/.htaccess erecipes/perl/.cvsignore erecipes/perl/.htaccess erecipes/templates/.htaccess erecipes/tmp/.htaccess Please inform the author. Writing Makefile for CGI::Ex::Recipes cp lib/CGI/Ex/Recipes.pm blib/lib/CGI/Ex/Recipes.pm Manifying blib/man3/CGI::Ex::Recipes.3 PERL_DL_NONLAZY=1 /home/cpanrun/tmp/5.10.0/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(1, 'blib/lib', 'blib/arch')" erecipes/perl/t/*.t erecipes/perl/t/00-load.........1..10 ok 1 - use CGI::Ex::Recipes; ok 2 - use CGI::Ex::Recipes::View; ok 3 - use CGI::Ex::Recipes::Edit; ok 4 - use CGI::Ex::Recipes::Add; ok 5 - use CGI::Ex::Recipes::Delete; ok 6 - use CGI::Ex::Recipes::Template::Menu; ok 7 - use CGI::Ex::Recipes::DBIx; ok 8 - use CGI::Ex::Recipes::Default; ok 9 - use CGI::Ex::Recipes::Imager; ok 10 - use CGI::Ex::Recipes::Cache; Name "DBD::SQLite::sqlite_version" used only once: possible typo at /home/cpanrun/build/5.10.0/lib/DynaLoader.pm line 226. # Testing CGI::Ex::Recipes 0.07, Perl 5.010000, /home/cpanrun/tmp/5.10.0/bin/perl ok erecipes/perl/t/01-cache........ok 1 - use CGI::Ex::Recipes::Cache; ok 2 ok 3 - Set a cache entry. key:key value:value ok 4 - Get the set cache entry. key:key value:value ok 5 - entry:key is in $cache->{cache_hash} too. ok 6 - Clear all cache. ok 7 - key value is undef now. ok 8 - $struct freezed!!! # TODO freeze() and thaw() are not used yet. ok 9 - $struct thawed!!! # TODO freeze() and thaw() are not used yet. ok 10 - $thawed is the same as original $struct. # TODO freeze() and thaw() are not used yet. 1..10 ok 3/10 unexpectedly succeeded TODO PASSED tests 8-10 erecipes/perl/t/boilerplate.....1..13 ok 1 - README contains no boilerplate text ok 2 - Changes contains no boilerplate text ok 3 - lib/CGI/Ex/Recipes.pm contains no boilerplate text ok 4 - erecipes/perl/lib/CGI/Ex/Recipes.pm contains no boilerplate text ok 5 - erecipes/perl/lib/CGI/Ex/Recipes/View.pm contains no boilerplate text ok 6 - erecipes/perl/lib/CGI/Ex/Recipes/Edit.pm contains no boilerplate text ok 7 - erecipes/perl/lib/CGI/Ex/Recipes/Add.pm contains no boilerplate text ok 8 - erecipes/perl/lib/CGI/Ex/Recipes/Delete.pm contains no boilerplate text ok 9 - erecipes/perl/lib/CGI/Ex/Recipes/Template/Menu.pm contains no boilerplate text ok 10 - erecipes/perl/lib/CGI/Ex/Recipes/DBIx.pm contains no boilerplate text ok 11 - erecipes/perl/lib/CGI/Ex/Recipes/Default.pm contains no boilerplate text ok 12 - erecipes/perl/lib/CGI/Ex/Recipes/Imager.pm contains no boilerplate text ok 13 - erecipes/perl/lib/CGI/Ex/Recipes/Cache.pm contains no boilerplate text ok erecipes/perl/t/pod-coverage....1..0 # Skip Test::Pod::Coverage 1.04 required for testing POD coverage skipped all skipped: Test::Pod::Coverage 1.04 required for testing POD coverage erecipes/perl/t/pod.............1..1 ok 1 - blib/lib/CGI/Ex/Recipes.pm ok All tests successful (3 subtests UNEXPECTEDLY SUCCEEDED), 1 test skipped. Passed TODO Stat Wstat TODOs Pass List of Passed ------------------------------------------------------------------------------- erecipes/perl/t/01-cache.t 3 3 8-10 Files=5, Tests=34, 2 wallclock secs ( 0.72 cusr + 0.44 csys = 1.16 CPU) Installing /home/cpanrun/build/5.10.0/html/site/lib/CGI/Ex/Recipes.html Installing /home/cpanrun/build/5.10.0/site/lib/CGI/Ex/Recipes.pm Installing /home/cpanrun/build/5.10.0/site/man/man3/CGI::Ex::Recipes.3 Appending installation info to /home/cpanrun/build/5.10.0/lib/perllocal.pod $VAR1 = { 'src' => 'erecipes', 'dest' => '/home/cpanrun/recipes' }; **************************************** CGI::Ex::Recipes - Example application using CGI::Ex::App - Anti-framework application framework. **************************************** Using /home/cpanrun/build/5.10.0/bin/perl 5.10.0 on linux Installing /home/cpanrun/depot/main/contrib-patched/perl/CPAN/src/CGI-Ex-Recipes/erecipes/* to /home/cpanrun/recipes/*... Copying /home/cpanrun/depot/main/contrib-patched/perl/CPAN/src/CGI-Ex-Recipes/erecipes/index.cgi to: /home/cpanrun/recipes/index.cgi Copying /home/cpanrun/depot/main/contrib-patched/perl/CPAN/src/CGI-Ex-Recipes/erecipes/index.pl to: /home/cpanrun/recipes/index.pl Copying /home/cpanrun/depot/main/contrib-patched/perl/CPAN/src/CGI-Ex-Recipes/erecipes/install.pl to: /home/cpanrun/recipes/install.pl Copying /home/cpanrun/depot/main/contrib-patched/perl/CPAN/src/CGI-Ex-Recipes/erecipes/conf/Recipes.conf to: /home/cpanrun/recipes/conf/Recipes.conf Copying /home/cpanrun/depot/main/contrib-patched/perl/CPAN/src/CGI-Ex-Recipes/erecipes/conf/httpd.conf to: /home/cpanrun/recipes/conf/httpd.conf Copying /home/cpanrun/depot/main/contrib-patched/perl/CPAN/src/CGI-Ex-Recipes/erecipes/conf to: /home/cpanrun/recipes/conf Copying /home/cpanrun/depot/main/contrib-patched/perl/CPAN/src/CGI-Ex-Recipes/erecipes/data/recipes.sqlite to: /home/cpanrun/recipes/data/recipes.sqlite Copying /home/cpanrun/depot/main/contrib-patched/perl/CPAN/src/CGI-Ex-Recipes/erecipes/data to: /home/cpanrun/recipes/data Copying /home/cpanrun/depot/main/contrib-patched/perl/CPAN/src/CGI-Ex-Recipes/erecipes/files/style.css to: /home/cpanrun/recipes/files/style.css Copying /home/cpanrun/depot/main/contrib-patched/perl/CPAN/src/CGI-Ex-Recipes/erecipes/files/img/logo.png to: /home/cpanrun/recipes/files/img/logo.png Copying /home/cpanrun/depot/main/contrib-patched/perl/CPAN/src/CGI-Ex-Recipes/erecipes/files/img/logo.svg to: /home/cpanrun/recipes/files/img/logo.svg Copying /home/cpanrun/depot/main/contrib-patched/perl/CPAN/src/CGI-Ex-Recipes/erecipes/files/img to: /home/cpanrun/recipes/files/img Copying /home/cpanrun/depot/main/contrib-patched/perl/CPAN/src/CGI-Ex-Recipes/erecipes/files to: /home/cpanrun/recipes/files Copying /home/cpanrun/depot/main/contrib-patched/perl/CPAN/src/CGI-Ex-Recipes/erecipes/perl/Changes to: /home/cpanrun/recipes/perl/Changes Copying /home/cpanrun/depot/main/contrib-patched/perl/CPAN/src/CGI-Ex-Recipes/erecipes/perl/README to: /home/cpanrun/recipes/perl/README Copying /home/cpanrun/depot/main/contrib-patched/perl/CPAN/src/CGI-Ex-Recipes/erecipes/perl/bin/startup.pl to: /home/cpanrun/recipes/perl/bin/startup.pl Copying /home/cpanrun/depot/main/contrib-patched/perl/CPAN/src/CGI-Ex-Recipes/erecipes/perl/bin to: /home/cpanrun/recipes/perl/bin Copying /home/cpanrun/depot/main/contrib-patched/perl/CPAN/src/CGI-Ex-Recipes/erecipes/perl/lib/CGI/Ex/Recipes.pm to: /home/cpanrun/recipes/perl/lib/CGI/Ex/Recipes.pm Copying /home/cpanrun/depot/main/contrib-patched/perl/CPAN/src/CGI-Ex-Recipes/erecipes/perl/lib/CGI/Ex/Recipes/Add.pm to: /home/cpanrun/recipes/perl/lib/CGI/Ex/Recipes/Add.pm Copying /home/cpanrun/depot/main/contrib-patched/perl/CPAN/src/CGI-Ex-Recipes/erecipes/perl/lib/CGI/Ex/Recipes/Cache.pm to: /home/cpanrun/recipes/perl/lib/CGI/Ex/Recipes/Cache.pm Copying /home/cpanrun/depot/main/contrib-patched/perl/CPAN/src/CGI-Ex-Recipes/erecipes/perl/lib/CGI/Ex/Recipes/DBIx.pm to: /home/cpanrun/recipes/perl/lib/CGI/Ex/Recipes/DBIx.pm Copying /home/cpanrun/depot/main/contrib-patched/perl/CPAN/src/CGI-Ex-Recipes/erecipes/perl/lib/CGI/Ex/Recipes/Default.pm to: /home/cpanrun/recipes/perl/lib/CGI/Ex/Recipes/Default.pm Copying /home/cpanrun/depot/main/contrib-patched/perl/CPAN/src/CGI-Ex-Recipes/erecipes/perl/lib/CGI/Ex/Recipes/Delete.pm to: /home/cpanrun/recipes/perl/lib/CGI/Ex/Recipes/Delete.pm Copying /home/cpanrun/depot/main/contrib-patched/perl/CPAN/src/CGI-Ex-Recipes/erecipes/perl/lib/CGI/Ex/Recipes/Edit.pm to: /home/cpanrun/recipes/perl/lib/CGI/Ex/Recipes/Edit.pm Copying /home/cpanrun/depot/main/contrib-patched/perl/CPAN/src/CGI-Ex-Recipes/erecipes/perl/lib/CGI/Ex/Recipes/Imager.pm to: /home/cpanrun/recipes/perl/lib/CGI/Ex/Recipes/Imager.pm Copying /home/cpanrun/depot/main/contrib-patched/perl/CPAN/src/CGI-Ex-Recipes/erecipes/perl/lib/CGI/Ex/Recipes/Install.pm to: /home/cpanrun/recipes/perl/lib/CGI/Ex/Recipes/Install.pm Copying /home/cpanrun/depot/main/contrib-patched/perl/CPAN/src/CGI-Ex-Recipes/erecipes/perl/lib/CGI/Ex/Recipes/View.pm to: /home/cpanrun/recipes/perl/lib/CGI/Ex/Recipes/View.pm Copying /home/cpanrun/depot/main/contrib-patched/perl/CPAN/src/CGI-Ex-Recipes/erecipes/perl/lib/CGI/Ex/Recipes/Template/Menu.pm to: /home/cpanrun/recipes/perl/lib/CGI/Ex/Recipes/Template/Menu.pm Copying /home/cpanrun/depot/main/contrib-patched/perl/CPAN/src/CGI-Ex-Recipes/erecipes/perl/lib/CGI/Ex/Recipes/Template to: /home/cpanrun/recipes/perl/lib/CGI/Ex/Recipes/Template Copying /home/cpanrun/depot/main/contrib-patched/perl/CPAN/src/CGI-Ex-Recipes/erecipes/perl/lib/CGI/Ex/Recipes to: /home/cpanrun/recipes/perl/lib/CGI/Ex/Recipes Copying /home/cpanrun/depot/main/contrib-patched/perl/CPAN/src/CGI-Ex-Recipes/erecipes/perl/lib/CGI/Ex to: /home/cpanrun/recipes/perl/lib/CGI/Ex Copying /home/cpanrun/depot/main/contrib-patched/perl/CPAN/src/CGI-Ex-Recipes/erecipes/perl/lib/CGI to: /home/cpanrun/recipes/perl/lib/CGI Copying /home/cpanrun/depot/main/contrib-patched/perl/CPAN/src/CGI-Ex-Recipes/erecipes/perl/lib to: /home/cpanrun/recipes/perl/lib Copying /home/cpanrun/depot/main/contrib-patched/perl/CPAN/src/CGI-Ex-Recipes/erecipes/perl/t/00-load.t to: /home/cpanrun/recipes/perl/t/00-load.t Copying /home/cpanrun/depot/main/contrib-patched/perl/CPAN/src/CGI-Ex-Recipes/erecipes/perl/t/01-cache.t to: /home/cpanrun/recipes/perl/t/01-cache.t Copying /home/cpanrun/depot/main/contrib-patched/perl/CPAN/src/CGI-Ex-Recipes/erecipes/perl/t/boilerplate.t to: /home/cpanrun/recipes/perl/t/boilerplate.t Copying /home/cpanrun/depot/main/contrib-patched/perl/CPAN/src/CGI-Ex-Recipes/erecipes/perl/t/pod-coverage.t to: /home/cpanrun/recipes/perl/t/pod-coverage.t Copying /home/cpanrun/depot/main/contrib-patched/perl/CPAN/src/CGI-Ex-Recipes/erecipes/perl/t/pod.t to: /home/cpanrun/recipes/perl/t/pod.t Copying /home/cpanrun/depot/main/contrib-patched/perl/CPAN/src/CGI-Ex-Recipes/erecipes/perl/t to: /home/cpanrun/recipes/perl/t Copying /home/cpanrun/depot/main/contrib-patched/perl/CPAN/src/CGI-Ex-Recipes/erecipes/perl to: /home/cpanrun/recipes/perl Copying /home/cpanrun/depot/main/contrib-patched/perl/CPAN/src/CGI-Ex-Recipes/erecipes/templates/content/login.tthtml to: /home/cpanrun/recipes/templates/content/login.tthtml Copying /home/cpanrun/depot/main/contrib-patched/perl/CPAN/src/CGI-Ex-Recipes/erecipes/templates/content/main_wrapper.tthtml to: /home/cpanrun/recipes/templates/content/main_wrapper.tthtml Copying /home/cpanrun/depot/main/contrib-patched/perl/CPAN/src/CGI-Ex-Recipes/erecipes/templates/content/pre_process.tthtml to: /home/cpanrun/recipes/templates/content/pre_process.tthtml Copying /home/cpanrun/depot/main/contrib-patched/perl/CPAN/src/CGI-Ex-Recipes/erecipes/templates/content/index/default.tthtml to: /home/cpanrun/recipes/templates/content/index/default.tthtml Copying /home/cpanrun/depot/main/contrib-patched/perl/CPAN/src/CGI-Ex-Recipes/erecipes/templates/content/index/edit.tthtml to: /home/cpanrun/recipes/templates/content/index/edit.tthtml Copying /home/cpanrun/depot/main/contrib-patched/perl/CPAN/src/CGI-Ex-Recipes/erecipes/templates/content/index/edit.val to: /home/cpanrun/recipes/templates/content/index/edit.val Copying /home/cpanrun/depot/main/contrib-patched/perl/CPAN/src/CGI-Ex-Recipes/erecipes/templates/content/index/view.tthtml to: /home/cpanrun/recipes/templates/content/index/view.tthtml Copying /home/cpanrun/depot/main/contrib-patched/perl/CPAN/src/CGI-Ex-Recipes/erecipes/templates/content/index to: /home/cpanrun/recipes/templates/content/index Copying /home/cpanrun/depot/main/contrib-patched/perl/CPAN/src/CGI-Ex-Recipes/erecipes/templates/content to: /home/cpanrun/recipes/templates/content Copying /home/cpanrun/depot/main/contrib-patched/perl/CPAN/src/CGI-Ex-Recipes/erecipes/templates to: /home/cpanrun/recipes/templates Copying /home/cpanrun/depot/main/contrib-patched/perl/CPAN/src/CGI-Ex-Recipes/erecipes to: /home/cpanrun/recipes