Dancer

Short description: Web framework

DancerOriginal author(s)| Alexis Sukrieh

|

Initial release| July 27, 2009 (2009-07-27)
Stable release|

Template:Dancer (software) version / Template:Dancer (software) version

Repository| Dancer Repository
Written in| Perl
Operating system| Cross-platform
Type| Web application framework
License| GPL and PAL
Website| www.perldancer.org
Logo

Dancer is an open source lightweight web application framework written in Perl and inspired by Ruby's Sinatra.

In April 2011, Dancer was rewritten from scratch and released as Dancer2. The reason for the rewrite was to fix architectural issues and eliminate the use of singletons.[1] Development of Dancer1 was at first frozen, but was later continued to maintain backward compatibility for existing apps.[2]

Dancer is developed through GitHub, with stable releases available via CPAN. Dancer2 is released as a separate module.

## Contents

* 1 Example
* 2 Features
* 2.1 Out-of-box
* 2.2 Standalone development server
* 2.3 PSGI / Plack support
* 2.4 Abstracted
* 3 See also
* 4 References
* 5 External links

## Example

#!/usr/bin/env perl
use Dancer2;

get '/hello/:name' => sub {
return "Why, hello there " . route_parameters->get('name');

get '/redirectMeTo/:trgval' => sub {
redirect '/' . route_parameters->get('trgval');

start;

## Features

### Out-of-box

Unlike other frameworks such as Catalyst, Dancer only requires a handful of CPAN modules and is very self-contained.

### Standalone development server

Dancer includes a standalone development server that can be used for developing and testing applications.

### PSGI / Plack support

Dancer supports the PSGI specification, and can thus be run on any compliant PSGI server, including Plack, uWSGI or Mongrel 2.

### Abstracted

Since most parts of Dancer are abstracted and has a plugin architecture, extending Dancer is fairly straightforward, and a thriving community has sprung up around building these extensions.

Dancer features a lightweight object system, exception throwing similar to Try::Tiny, and is fast, especially in CGI environments.

## See also

* Comparison of web frameworks

## References

1. ↑ "All About Dancer - In Conversation With Sawyer X Part 2". http://www.josetteorama.com/all-about-dancer-interview-of-sawyer-x-part-2/.
2. ↑ "Dancer 1 and Dancer 2, what we’re going to do". http://blog.sukria.net/2013/02/18/dancer-1-and-dancer-2-what-were-going-to-do/.

## External links

* Dancer's Homepage
* Active Project page on Github
* Module on CPAN
* The Perl Programming Language
* Dancer 2, or Why I Rewrote Everything
* Dancer 1 and Dancer 2, what we’re going to do

* v
* t
* e

Web frameworks

* Comparison

C++|

* CppCMS
* Wt

CLI|

* ASP.NET
* Core
* AJAX
* Dynamic Data
* MVC
* Razor
* Web Forms
* DNN
* BFC
* MonoRail
* OpenRasta
* Umbraco
* WebSharper

ColdFusion|

* CFWheels
* ColdBox Platform
* ColdSpring
* Fusebox
* Model-Glue

Common Lisp|

* Caveman2
* CL-HTTP
* Weblocks

Haskell|

* Yesod
* Snap

Java|

* AppFuse
* Flexive
* Grails
* GWT
* ICEfaces
* ItsNat
* JavaServer Faces
* JHipster
* Jspx
* JWt
* OpenXava
* Play
* Remote Application Platform
* RIFE
* Seam
* Sling
* Spring
* Stripes
* Struts
* Tapestry
* Vaadin
* Vert.x
* WebWork
* Wicket
* WaveMaker
* ZK

JavaScript|

* Angular/AngularJS
* Backbone.js
* Chaplin.js
* Closure
* Dojo Toolkit
* Ember.js
* Express.js
* Ext JS
* jQuery
* Knockout.js
* Meteor
* MooTools
* Node.js
* OpenUI5
* Prototype
* React
* Rico
* script.aculo.us
* Sencha Touch
* SproutCore
* Svelte
* Vue.js
* Wakanda

Perl|

* Catalyst
* Dancer
* Mason
* Maypole
* Mojolicious
* WebGUI

PHP|

* CakePHP
* CodeIgniter
* Drupal
* Fat-Free
* FuelPHP
* Flow
* Grav
* Gyroscope
* Horde
* Joomla
* Kohana
* Laravel
* Lithium
* Midgard
* MODX
* Nette
* Phalcon
* PHP-Fusion
* Pop PHP
* PRADO
* ProcessWire
* Qcodo
* Silex
* SilverStripe
* Symfony
* TYPO3
* WordPress
* XOOPS
* Yii
* Zend Framework

Python|

* BlueBream
* CherryPy
* Django
* Flask
* Grok
* Nevow
* Pyjs
* Pylons
* Pyramid
* Quixote
* TACTIC
* Tornado
* TurboGears
* web2py
* Webware
* Zope 2
* more...

Ruby|

* Camping
* Merb
* Padrino
* Ruby on Rails
* Sinatra

Scala|

* Lift
* Play
* Scalatra

Smalltalk|

* AIDA/Web
* Seaside

Other languages|

* Vibe.d (D)
* Application Express (PL/SQL)
* Grails (Groovy)
* Kepler (Lua)
* OpenACS (Tcl)
* Phoenix (Elixir)
* SproutCore (JavaScript-Ruby)
* Yaws (Erlang)

* v
* t
* e

Perl

People|

* Larry Wall
* Randal L. Schwartz
* Damian Conway
* Allison Randal
* Audrey Tang
* Sean M. Burke
* chromatic
* Adam Kennedy
* brian d foy
* Jesse Vincent

Things|

* CPAN
* Perl Foundation
* Perl Mongers
* PerlMonks
* archives
* module
* Perl VM
* YAPC

Frameworks|

* Bioperl
* Catalyst
* Dancer
* DBI
* [[DBIx::Class|]]
* LWP
* Mason
* Maypole
* Mojolicious
* Moose
* Plack
* PSGI
* Template Toolkit

Software|

* Amavis
* Argus
* @SSP
* AWStats
* BackupPC
* Bricolage
* Bugzilla
* Dada Mail
* ikiwiki
* Makepp
* Movable Type
* Munin
* OTRS
* SpamAssassin
* TWiki/Foswiki
* W3Perl
* Webmin

Related|

* Parrot
* Raku
* Rakudo
* rules

* Outline
* Category

0.00

(0 votes)

|

Retrieved from "https://handwiki.org/wiki/index.php?title=Software:Dancer&oldid=754711"
*[v]: View this template
*[t]: Discuss this template
*[e]: Edit this template