What is Dancer?

Dancer is a micro web application framework for Perl

Key features

  • Dead Simple - Intuitive, minimalist and very expressive syntax
  • Flexible - PSGI support, plugins and modular design allow for strong scalability
  • Few dependencies - Dancer depends on as few CPAN modules as possible making it easy to install

Prepare your moves... and dance!

  • #!/usr/bin/env perl
    use Dancer;
    
    get '/' => sub {
        "Hello World!"
    };
    
    dance;
    
  • $ perl bin/app.pl &
    ...
    $ curl localhost:3000/
    Hello world!
    
  • 1.3 
  • You can also follow Dancer on GitHub and on Twitter

What people say about Dancer...


Just downloaded and ran #Perl Dancer. Really curious about it. It looks amazing. - @juliofraire

Perl Dancer is amazing! If you're into web development, definitely give Dancer a look, you might be surprised how fun and productive web development can be these days. Dancer is two things packed together: it stays out of your way if you like that, but also provides you with very powerful primitives to get the complex web tasks done in just a few lines of code. Highly recommended to both novices and experts! - linportal on reddit

For a simple framework I suggest Dancer. Great thing, it made me stop hating web development. - tsjr

...there's finally a web framework that works for me. It's called Dancer, and as redundant as this might sound; Dancer, is an effortless web framework. [...] It took me more time studying Dancer's features and specs, than the time it took for me to write the whole mini-blog app. - Carlos Ivan Sosa (gnusosa)

In the end I went with Dancer and I'm loving it so far - some more docs on the idiomatic way to deal with user creation, authentication and roles might be nice but I think I figured it all out pretty quickly. - Simon Wistow

Trying out @PerlDancer as a basis for building web apps. Very nice. - talexb

Just wrapped up an eight hour scrum task in 90 minutes. I'm really enjoying using Dancer. Awesome, awesome, awesome! - talexb

Thanks to the @PerlDancer guys in IRC for their help.. better than any commercial support IMO - John Imison (@johnimison)

Dancer is the first web framework I haven't wanted to pee on :-) - Schwern

Of all the light-weight frameworks, Dancer was the nicest to work with when I went through to evaluate them... - Daniel Pittman

Hacking around using @PerlDancer and enjoying it immensely. - deepakg

I just spent yesterday with Perl Dancer and was able to get a website going for my Dad's software consulting company in no time at all! Thanks for all your efforts on Dancer it is pretty awesome. - Bryon Wickland

Dancer is the first web framework that hasn't given me an aneurysm. #perl - Michael G Schwern (@schwern)

I’m really enjoying using Perl’s Dancer for building lightweight web applications. It’s heavily inspired by Ruby’s Sinatra framework, but clearly Perlish. - Joshua Barratt

[...] the words that come to mind are "quick", "small", "simple" and "clean". There's a close alignment of the packages and methods with the concepts one has in mind when doing web development. Formerly a Perl teacher, I never taught web development to the first-year students because the learning curve would have been too steep. I think Dancer has changed the game and beginners *can* learn Perl web development using Dancer. (We'll find out at the beginner's class I'm giving at YAPC in Riga:) - Andrew Solomon on cpanratings

I like how dancer doesn't force you to code in any specific way, it provides the right amount of syntactic sugar to get your app up and running in double quick time - but doesn't get in the way when you want to do something else. It's nice and light, and can be deployed in many environments. Thumbs up from me! - James Aitken

Got my webservice up and running in 1 day with no knowledge about Dancer whatsover.[...] Dancer is excellent for middle size websites or web services. It doesn't get in your way, and supports a [...] lot of backend for deploying and running your application. The transition from developing a prototype to having a production ready app is very smooth. - Damian Krotkine

I have - and would second frameworks like Perl Dancer as fantastic examples of what the Perl community is up to these days. - corn on Hacker News

Perl is [...] thriving and making some very cool new stuff while steadily negating the argument of being line-noise (Dancer comes to mind as an excellent project to both read and use). - dragonquest on Hacker News

Dancer is a breath of fresh air in the convoluted world of Perl web frameworks. I have a lot vested in CGI::Application, another fine framework, but Dancer has really caught my fancy for future web apps. - punkish

@PerlDancer is the easiest way to write webapps. One day from idea to implemention. Fantastic work. - alexkalderimis

It's fast! It's simple! It's minimalistic! I really like it! Thanks. - Łukasz Metys Lewandowski

spacer
On Twitter: RT @pinguxx: #perl #dancer its awesome :)
spacer
gipoco.com is neither affiliated with the authors of this page nor responsible for its contents. This is a safe-cache copy of the original web site.