search
Get Started
search
Dancer2 - Framework
zoom_in Click to enlarge

Dancer2

language

description Dancer2 Overview

Dancer2 is a Perl web framework prioritizing speed and flexibility by utilizing Rack applications and offering features like routing, templating, and JSON handling for building web services and applications.

help Dancer2 FAQ

What is Dancer2 and what is it used for?

Dancer2 is a Perl web application framework designed for quickly building web apps and RESTful services with minimal boilerplate. It is inspired by Ruby's Sinatra and provides routing, template rendering, and JSON handling. It uses PSGI, Perl's standard interface for web applications, analogous to Ruby's Rack or Python's WSGI.

How is Dancer2 different from the original Dancer?

Dancer2 is a rewrite of the original Dancer framework with a cleaner, fully object-oriented architecture that supports running multiple applications in the same process. The original Dancer used a more functional style with package-global state that made multiple-app scenarios problematic. The two share a similar API, so migrating is relatively straightforward for most projects.

Can I deploy a Dancer2 app with common web servers?

Yes, Dancer2 applications run via PSGI, so they can be deployed using any PSGI-compatible server such as Plack, Starman, or Gazelle behind a reverse proxy like nginx or Apache. The framework includes a built-in development server for testing. Production deployments typically use Starman or Gazelle for better performance.

Does Dancer2 have a plugin ecosystem?

Yes, Dancer2 has a collection of plugins available on CPAN covering features like database access, authentication, serialization, and logging. The plugin ecosystem is smaller than those of frameworks in more popular languages, reflecting Perl's niche but dedicated web development community. Plugins follow a consistent API defined by the Dancer2 core.

Reviews & Comments

Write a Review

rate_review

Be the first to review

Share your thoughts with the community and help others make better decisions.

Save to your list

Save your favorites and follow how their scores change over time.

Save favorites
Track changes
Compare scores

Already have an account? Sign in

Compare Items

See how they stack up against each other

Comparing
VS
Select 1 more item to compare