Permalink
Browse files

converted to dzil

  • Loading branch information...
1 parent 248d650 commit d484f8a9e6b3b8e95186494fdb6eb12147992dae Zbigniew Lukasiak committed Sep 9, 2010
View
@@ -1,5 +1,5 @@
Revision history for WebNano
-0.0.1 Mon Dec 28 09:59:08 2009
+0.001
Initial release.
View
@@ -1,22 +0,0 @@
-use inc::Module::Install;
-
-name 'WebNano';
-all_from 'lib/WebNano.pm';
-author q{Zbigniew Łukasiak <zby@cpan.org>};
-license 'perl';
-
-requires 'Object::Tiny::RW';
-requires 'Plack' => 0.9938;
-requires 'Plack::Request';
-requires 'Scalar::Util';
-requires 'Plack::Test';
-requires 'URI::Escape';
-requires 'Try::Tiny';
-requires 'Template::Tiny';
-
-build_requires 'Test::More';
-
-auto_install;
-
-WriteAll;
-
View
73 README
@@ -1,73 +0,0 @@
-WebNano version 0.001
-
-The main design goals of this project:
-* provide basic functionality that should cover most of use cases and an easy way to override it and extend
-* delegate as much as possible to specialized CPAN modules with minimal hassle
-
-On the more experimental side this library also tries to facilitate encapsulating code together with templates into web components.
-
-The main functionality is simple mapping (dispatching) of HTTP request paths into method
-calls as in the following example:
-
- '/' -> 'MyApp::Controller->index_action()'
- '/page' -> 'MyApp::Controller->page_action()'
- '/Some/Very/long/path' -> 'MyApp::Controller::Some::Very->long_action( 'path' )
-
-The name of the action subroutine needs to end with '_action' postfix or alternatively
-the mapping of the last part of the path to the subroutine name can be provided with
-'url_map' which can be an array of sub names or a hash of mappings (like run_modes
-in CGI::Application).
-This mapping is done inside Controller code - so it can be easily overridden
-and extended on per directory basis. This should allow one to create
-self-contained controllers that fully encapsulate some specialized functionality.
-
-The extensions directory contains packages for controllers:
-
-DSL shows how to create a DSL for dispatching (ala Dancer):
-
- get '/some_address' => sub { 'This is some_address in web_dispatch table' };
-
-CRUD shows how to create an encapsulated CRUD controller code
-
-WebNano-Renderer-TT is a Template Toolkit based renderer for WebNano.
-
-CONTROLLER OBJECTS LIVE IN THE REQUEST SCOPE (NEW CONTROLLER PER REQUEST)
-
-If you need to build a heavy
-structure used in the controller you can always build it as the
-application attribute and use it in the controller as it has access to
-the application object, but since all the work of controllers is done
-in the request scope (i.e. creating the request) - then it makes sense
-that the whole object lives in that scope. This is the same as
-Tatsumaki handlers (and controllers in Rails, Django and probably
-other frameworks) - but different from Catalyst.
-
-
-DEPENDENCIES
-
-The core of WebNano is based on Class::XSAccessor.
-Beside that there are only minimal dependencies for the core - but there are
-a couple of extensions illustrating how to implement different dispatching
-methods and also for testing I use FormHandler and DBIC - those would eventually go into
-examples and other distros but for now it is convenient for me to keep it in
-the main repository.
-
-
-INSTALLATION
-
-To install this module, run the following commands:
-
- perl Makefile.PL make make test make install
-
-
-DEPENDENCIES
-
-See Makefile.PL
-
-
-COPYRIGHT AND LICENCE
-
-Copyright (C) 2009, Zbigniew Łukasiak
-
-This library is free software; you can redistribute it and/or modify it under
-the same terms as Perl itself.
View
@@ -0,0 +1,20 @@
+name = WebNano
+author = Zbigniew Lukasiak <zby@cpan.org>
+license = Perl_5
+copyright_holder = Zbigniew Lukasiak <zby@cpan.org>
+copyright_year = 2010
+version = 0.001
+
+[@Basic]
+[AutoPrereq]
+[Prereq]
+[TestRelease]
+
+[InstallGuide]
+[MetaJSON]
+[MetaResources]
+repository.web = http://github.com/zby/WebNano
+repository.type = git
+
+[CheckChangeLog]
+
Oops, something went wrong.

0 comments on commit d484f8a

Please sign in to comment.