September 2011 Archives

Making RESTful Dancing easy with Dancer::Plugin::REST

An useful plugin for writing RESTful Dancer web applications is Dancer::Plugin::Rest by Alexis Sukrieh, available at

To use it when defining routes, easily:

package MyApp;

use Dancer;
use Dancer::Plugin::REST;

This exports the resource keyword, which can be used as such:

resource camel => (/users/job_van_achterberg/2011/09/index.html

About Job van Achterberg

user-pic A small cog in the Perl machine, I'm a happy Perl developer and have some CPAN modules here and there.