Movatterモバイル変換


[0]ホーム

URL:


Jump to content
WikipediaThe Free Encyclopedia
Search

Dancer (software)

From Wikipedia, the free encyclopedia
Web framework
This article is about the web framework. For the biological database, seeDAnCER (database).
Dancer
Original authorAlexis Sukrieh
Initial releaseJuly 27, 2009 (2009-07-27)
Stable release
2.0.1[1] / 2025-10-22[±]
Written inPerl
Operating systemCross-platform
TypeWeb application framework
LicenseGPL andPAL
Websiteperldancer.orgEdit this at Wikidata
Repository

Dancer is anopen source lightweightweb application framework written inPerl and inspired byRuby'sSinatra.

In April 2011, Dancer was rewritten from scratch and released asDancer2. The reason for the rewrite was to fix architectural issues and eliminate the use ofsingletons.[2] Development of Dancer1 was at first frozen, but was later continued to maintainbackward compatibility for existing apps.[3]

Dancer is developed throughGitHub, with stable releases available viaCPAN. Dancer2 is released as a separate module.

Example

[edit]
#!/usr/bin/env perluseDancer2;get'/hello/:name'=>sub{return"Why, hello there ".route_parameters->get('name');};get'/redirectMeTo/:trgval'=>sub{redirect'/'.route_parameters->get('trgval');};start;


Features

[edit]

Out-of-box

[edit]

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

Standalone development server

[edit]

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

PSGI / Plack support

[edit]

Dancer supports thePSGI specification, and can thus be run on any compliant PSGI server, includingPlack,uWSGI orMongrel 2.

Abstracted

[edit]

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

[edit]

References

[edit]
  1. ^"Dancer2 Releases". perldancer.org. Retrieved2026-01-22.
  2. ^"All About Dancer - In Conversation With Sawyer X Part 2".
  3. ^"Dancer 1 and Dancer 2, what we're going to do". Archived fromthe original on 2015-01-20. Retrieved2015-01-20.

External links

[edit]
.NET
C++
ColdFusion
Common Lisp
Haskell
Java
JavaScript
Back end
Server-side
Full-stack
Front end
Client-side
Perl
PHP
Python
Ruby
Rust
Scala
Smalltalk
Other languages
Things
Frameworks
Software
Related
Books
People
Retrieved from "https://en.wikipedia.org/w/index.php?title=Dancer_(software)&oldid=1328903464"
Categories:
Hidden categories:

[8]ページ先頭

©2009-2026 Movatter.jp