public
Description: A Camping-inspired Web Microframework for Perl
Homepage: http://groups.google.com/group/squatting-framework
Clone URL: git://github.com/beppu/squatting.git
Click here to lend your support to: squatting and make a donation at www.pledgie.com !
name age message
file .gitignore Mon Apr 28 00:16:22 -0700 2008 more files to .gitignore [John Beppu]
file Changes Mon Sep 22 19:51:25 -0700 2008 fixed a bug where Squatting::On::Catalyst + Fas... [beppu]
file MANIFEST Wed Sep 17 09:59:05 -0700 2008 remove references to vw-related files from MANI... [beppu]
file MANIFEST.SKIP Sat Apr 26 16:19:28 -0700 2008 Ignore .git/**/* [John Beppu]
file MIT-LICENSE Tue May 13 12:59:12 -0700 2008 Back to MIT [John Beppu]
file Makefile.PL Wed Sep 17 09:57:46 -0700 2008 bin/vw is going to part of App::VW from here on [beppu]
file README Tue Jul 08 07:56:29 -0700 2008 s/view/template/ [John Beppu]
directory bin/ Wed Sep 17 09:57:46 -0700 2008 bin/vw is going to part of App::VW from here on [beppu]
directory doc/ Tue Aug 12 00:55:31 -0700 2008 propaganda ii [John Beppu]
file edit Sun Aug 24 15:20:24 -0700 2008 the number of files has grown to big for just o... [beppu]
directory eg/ Mon Sep 29 20:37:20 -0700 2008 redirect to where the action is (for convenience) [beppu]
directory lib/ Mon Sep 29 00:42:20 -0700 2008 updated comet event controller example [beppu]
directory t/ Mon Jun 09 02:32:28 -0700 2008 add [John Beppu]
README

                                                                  -+m
                                                                 .%- ..
  [ Squatting ]                                                . m*#-+ 
  A Camping-inspired Web Microframework for Perl               m+*##+m.
                                                          ...- m#*#%-..
                                                        --.. +mm###-+-.
                                                      ..- m..*#####*m++
                                                   .--+.-m#m+.%+-m###+
                                                  .-m..###+...% m#m-##% .
                                                     +%+.. -++.+  m--#-+
                                                  .. --..%*-%-    --+#.m
                                                   -  - -.--+# ..   +#m+
                                                        ..#-+%.    +.#..
                                           .    . .    .%#-...     .-+.-
                                   .   -.+m+-. .. .-.++#.*-...       . .
                           ..- .+. ..+..+---+%---.--.--#m#+..        +
                        .-. m .. -.m++m####%###-##%.++*%++ m .
                      . +. m-- *##*#+###..-m+m.++.#-####-%-m.  ..
                      -m#--%###-m+- --+%m..--. -  .-*%####% ..-. -.
                   -...-*##%m+.+-+.++-m#+-. .. . +.+%%-#m..m#%m+..-.
                   -..*#**m.-.+..-.m+-##+.-       +m-+*%- %-- %##-
                 ...++*++.. . .     +m##*-.       -.%m+ +  -.-++%+-
                . ++###.%.--   . . *m+##%%.     .-%-#-    .  ...#...
                 ..%*+m       . + m+####%..     .-+%#+-       .-#--
                 -.#mm..    --.- +%#-m#%%     ...%+##%+        .+..\-
                .+mm%+ .. ..m-m.+%%+m**+..    --.##%m--.        + #-.
                .--%%.   . m .#++ %-- +mm-.  ...m##m-.+         -+*--
                 +-#+-   . .##+..   +..m     .m-#%#%--          -.##-.
               .%.**+. ...m#%..- .. ...# m . +-%#.%+           . %#%..+
               -+##%.+..  #-. -.       .m+..m -#%mm            .--**++
               .-%.*m+-...mm+        . .+ +-  -m-+.            ..*#.. .
               .-+*m#%m**++-+        ..  -##.%%.-            - ..##+-.
               - +-*%##%+mm--+          . .#m-m-           - -+.m.##-+.
                .. m*##*#*%-m+-  - .    . .m.+.m      ..     m%+.*-% -
                ...+##m%####m-+m- -.   .. ..- ++..  .  +.. +%-###m-%.
                 ..%#-%#++%####.+.m-+.     . +m#+#+%.. . -#*###m.--
                 . %-mm ++-mm+**##%mm.   - .+mm#+*.+--.#/##-+-+m    .
                ..+.#    - +-. m%m#m#*+.-..+##*###%m#%#% .--- - . .
                .-m#m. .  .  ..m+...#%m--+-*#+######.%+..  .+
              ..m-#%. .      ..- .+--  -   .---.-**-+--...
             .+.#m#m-            ..   . . - -..- ..*
            . +-##-+. .                     --  . ..
             .+##m%+
              .%.---
             ..  .
              ...

  http://en.wikipedia.org/wiki/Squatting
  http://github.com/beppu/squatting/tree/master


                                  RANDOM NOTES
                                  ============

              There is an example application in the eg/ directory
                               called "Example".

           This is how you currently run this squatting application:

                                     cd eg/
                               squatting Example

              (Example.pm needs to be discoverable through @INC.)

                                    - -*- -

                     If you're familiar w/ the Camping API,
                      the Squatting API will feel similar.

                                    - -*- -

     Example::Controllers is the package that contains all the controllers.

                                    - -*- -

                     Controllers are objects (not classes)
                  that are constructed using the C() function.

                                    - -*- -

                      Controllers represent HTTP Resources
                           that support HTTP Methods
                             like GET and POST with
                               the object methods
                                 get and post.

                        This was the genius of Camping.
                        I can't think of a better way to
                          express RESTful controllers.

                                    - -*- -

           Example::Views is the package that contains all the views.

                                    - -*- -

                      Views are also objects (not classes)
                  that are constructed using the V() function.

                                    - -*- -

               The methods of a view are thought of as templates.

                                    - -*- -

                     The responsibility of a template is to
                       1) take a hashref of variables and
                              2) return a string.

                  You may use any templating system you want,
                              or even none at all.

                                    - -*- -

                You may define a layout template called 'layout'
         which will be used to wrap the content of any other template.
            If you don't want your template to be wrapped, you have
                     to give it a name with a '_' in front.

                                    - -*- -

           You may define a generic template called '_' for use when
                      a specific template can't be found.

                                    - -*- -

                          You may have multiple views.

                                    - -*- -

                The first view you define is your default view.

                                    - -*- -

               The optional 2nd parameter to the render() method
           lets you specify which view you want to use.  For example,

                        $self->render('profile', 'json')

           would render the 'profile' template using the 'json' view.