World Library  
Flag as Inappropriate
Email this Article

Dancer (software)

Article Id: WHEBN0029783881
Reproduction Date:

Title: Dancer (software)  
Author: World Heritage Encyclopedia
Language: English
Subject: Plack (software), PSGI, Perl, Sinatra (software), Outline of Perl
Collection: Free Software Programmed in Perl, Perl Software, Web Application Frameworks
Publisher: World Heritage Encyclopedia

Dancer (software)

Original author(s) Alexis Sukrieh
Stable release 1.3126 / July 15, 2014 (2014-07-15)
Written in Perl
Operating system Cross-platform
Type Web application framework
License GPL and PAL
Website .org.perldancerwww

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.


  • Example 1
  • History 2
  • Philosophy 3
  • Features 4
    • Out-of-box 4.1
    • Standalone Development Server 4.2
    • PSGI / Plack support 4.3
    • Abstracted 4.4
  • See also 5
  • References 6
  • External links 7


use Dancer;

get '/hello/:name' => sub {
    return "Why, hello there " . params->{name};

get '/redirectMeTo/:trgval' => sub {
    redirect request->path_info('/' . params->{trgval});






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.


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


  1. ^
  2. ^

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
This article was sourced from Creative Commons Attribution-ShareAlike License; additional terms may apply. World Heritage Encyclopedia content is assembled from numerous content providers, Open Access Publishing, and in compliance with The Fair Access to Science and Technology Research Act (FASTR), Wikimedia Foundation, Inc., Public Library of Science, The Encyclopedia of Life, Open Book Publishers (OBP), PubMed, U.S. National Library of Medicine, National Center for Biotechnology Information, U.S. National Library of Medicine, National Institutes of Health (NIH), U.S. Department of Health & Human Services, and, which sources content from all federal, state, local, tribal, and territorial government publication portals (.gov, .mil, .edu). Funding for and content contributors is made possible from the U.S. Congress, E-Government Act of 2002.
Crowd sourced content that is contributed to World Heritage Encyclopedia is peer reviewed and edited by our editorial staff to ensure quality scholarly research articles.
By using this site, you agree to the Terms of Use and Privacy Policy. World Heritage Encyclopedia™ is a registered trademark of the World Public Library Association, a non-profit organization.

Copyright © World Library Foundation. All rights reserved. eBooks from Project Gutenberg are sponsored by the World Library Foundation,
a 501c(4) Member's Support Non-Profit Organization, and is NOT affiliated with any governmental agency or department.