请输入您要查询的百科知识:

 

词条 Dancer (software)
释义

  1. Example

  2. History

  3. Philosophy

  4. Features

      Out-of-box    Standalone development server    PSGI / Plack support    Abstracted  

  5. See also

  6. References

  7. External links

{{for|the activity|Dancer}}{{Infobox software
|name = Dancer
|logo =
|screenshot =
|caption =
|collapsible =
|author = Alexis Sukrieh
|developer = David Precious
|released = {{Start date|2009|07|27}}
|latest release version = 1.3202
|latest release date = {{Start date and age|2015|11|07}}
|latest preview version =
|latest preview date =
|programming language = Perl
|operating system = Cross-platform
|platform =
|size =
|language =
|status =
|genre = Web application framework
|license = GPL and PAL
|website = {{URL|http://www.perldancer.org/}}
}}

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. !/usr/bin/perl

use Dancer;

get '/hello/:name' => sub {

};

get '/redirectMeTo/:trgval' => sub {

};

dance;

History

{{Empty section|date=November 2010}}

Philosophy

{{Empty section|date=November 2010}}

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

{{Portal|Free and open-source software}}
  • Comparison of web frameworks

References

1. ^{{cite web|url=http://www.josetteorama.com/all-about-dancer-interview-of-sawyer-x-part-2/|title=All About Dancer - In Conversation With Sawyer X Part 2}}
2. ^{{cite web|url=http://blog.sukria.net/2013/02/18/dancer-1-and-dancer-2-what-were-going-to-do/|title=Dancer 1 and Dancer 2, what we’re going to do}}

External links

  • Dancer's Homepage
  • [https://github.com/PerlDancer Active Project page on Github]
  • [https://metacpan.org/module/Dancer 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
{{Application frameworks}}{{Perl}}

3 : Free software programmed in Perl|Perl software|Web frameworks

随便看

 

开放百科全书收录14589846条英语、德语、日语等多语种百科知识,基本涵盖了大多数领域的百科知识,是一部内容自由、开放的电子版国际百科全书。

 

Copyright © 2023 OENC.NET All Rights Reserved
京ICP备2021023879号 更新时间:2024/9/20 14:19:45