summaryrefslogtreecommitdiff
path: root/posts/2010-01-31-dancer-1.130.org
diff options
context:
space:
mode:
authorFranck Cuny <franck.cuny@gmail.com>2016-08-10 14:33:04 -0700
committerFranck Cuny <franck.cuny@gmail.com>2016-08-10 20:17:56 -0700
commit8d7d02f42c3947f756c18cb4d37d9d97fbd0d27d (patch)
treea6cecddaaea7e87d901a6c28bebe3a531438f24b /posts/2010-01-31-dancer-1.130.org
parentMerge branch 'convert-to-org' (diff)
downloadlumberjaph-8d7d02f42c3947f756c18cb4d37d9d97fbd0d27d.tar.gz
convert back to md
Diffstat (limited to '')
-rw-r--r--posts/2010-01-31-dancer-1.130.org55
1 files changed, 0 insertions, 55 deletions
diff --git a/posts/2010-01-31-dancer-1.130.org b/posts/2010-01-31-dancer-1.130.org
deleted file mode 100644
index cb3f541..0000000
--- a/posts/2010-01-31-dancer-1.130.org
+++ /dev/null
@@ -1,55 +0,0 @@
-[[http://www.sukria.net/][Alexis]]
-([[http://search.cpan.org/~sukria/][sukria]]) released
-[[http://search.cpan.org/perldoc?Dancer][Dancer]] 1.130 this weekend.
-Dancer is a small and nice web framework based on ruby's
-[[http://www.sinatrarb.com/][sinatra]].
-
-Dancer have few dependancies (and it doesn't depends anymore on CGI.pm).
-The path dispatching is done using rules declared with HTTP methods
-(get/post/put/delete), and they are mapped to a sub-routine which is
-returned as the response to the request. Sessions are supported, and two
-template engines (one of them is Template Toolkit) comes with the Core.
-Dancer::Template::MicroTemplate is also available on CPAN if you need a
-light template engine.
-
-You can easily test it with a simple script
-
-#+BEGIN_SRC perl
- #!/usr/bin/env perl
- use Dancer;
-
- get '/' => sub {
- return "dancer";
- };
-
- get '/:name' => sub {
- return params->{name} . " is dancing";
- };
-
- dance;
-#+END_SRC
-
-and execute this script, point your browser to http://127.0.0.1:3000,
-and voila.
-
-Dancer provides also a small helper to write a new application:
-=dancer -a MyApplication=
-
-If you create an application with this script, an *app.psgi* file will
-be created. You can now execute =plackup --port 8080=
-
-(which comes with [[http://search.cpan.org/perldoc?Plack][Plack]] the
-[[http://plackperl.org/][Perl Web Server]]) and test if everything works
-fine: =curl http://localhost:8080=.
-
-This release remove some components from the core and they are now
-available as differents CPAN distributions. Two new keyword have also
-been added, *header* and *prefix*.
-
-If you want to read more about Dancer:
-
-- [[http://search.cpan.org/perldoc?Dancer][Dancer's documentation]]
-- [[http://blogs.perl.org/users/sawyer_x/2010/01/i-gotz-me-a-dancer.html][review
- by xsawyerx]]
-- [[http://gugod.org/2009/12/dancer.html][gugod's review]]
-- [[http://www.sukria.net/fr/archives/tag/dancer/][sukria's blog]]