Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

dancer::plugins(3pm) [debian man page]

Dancer::Plugins(3pm)					User Contributed Perl Documentation				      Dancer::Plugins(3pm)

Dancer::Plugins - interesting plugins to add to Dancer's capabilities DESCRIPTION
Dancer aims to keep the core as small as possible, but there are a growing number of useful plugins to add helpful features. This document provides a quick summary of some recommended plugins. PLUGINS
Dancer::Plugin::Database Provides easy database access via DBI, reading the DB connection details from your app's config file, and taking care of ensuring the connection is still valid and reconnecting if not (useful in persistent environments). Just calling the "database" keyword gives you a connected and working database handle. It also provides some helpful keywords to make inserting/updating data as simple as it should be. Dancer::Plugin::DBIC Provides easy acces to DBIx::Class database virtualization. Dancer::Plugin::Auth::RBAC Dancer Authentication, Security and Role-Based Access Control Framework. Dancer::Plugin::Email Provides easy email-sending powered by Email::Send - simply call the "email" keyword. Email sending settings can be taken from your app's config. Dancer::Plugin::SMS Send SMS text messages to mobile phones from your Dancer app, using any service supported by SMS::Send. Dancer::Plugin::Ajax Provides easy way to add Ajax route handlers. Dancer::Plugin::REST Makes writing RESTful web services easy. Dancer::Plugin::SiteMap Automatically provides site maps (as a HTML page, or as an XML sitemap ready for Google) based on the routes your app defines. Dancer::Plugin::Validation Easy data validation powered by Oogly. Dancer::Plugin::Params::Normalization Provides different ways of normalizing parameter names Dancer::Plugin::SimpleCRUD Provides easy CRUD (create, read, update, delete) facilities, automatically creating routes to display, add, edit and delete data from a database table. Dancer::Plugin::WebSocket Supports building apps using Web Sockets for bi-directional, full-duplex communications over a long-lived socket connection. Dancer::Plugin::Memcached Cache page responses or individual items of data with memcached for performance. Dancer::Plugin::MobileDevice Quickly determine whether the client is a mobile browser, in order to offer a simplified layout, or otherwise customise features. Dancer::Plugin::NYTProf Provides dead-simple profiling of your app using Devel::NYTProf - enables profiling for each request individually, serves up a list of profiling runs, and generates & sends the HTML reports produced by "nytprofhtml". Dancer::Plugin::Bcrypt Provides simple effective password hashing and validation using Bcrypt. Dancer::Plugin::Cache::CHI Provides caching for generated pages and/or arbitrary data. Uses CHI, so is backend-agnostic - caching can be done in memory, to files, using Memcache, in a database, or any other method for which there is a CHI::Driver module. Dancer::Plugin::Thumbnail Easy thumbnail generation using GD. Dancer::Plugin::Captcha::SecurityImage Easy CAPTCHA image generation and validation, using GD. Dancer::Plugin::Facebook Easily work with Facebook's Graph API from your Perl Dancer app. Uses Facebook::Graph. Dancer::Plugin::Redis Easy Redis database connections, based upon Dancer::Plugin::Database. Dancer::Plugin::XML::RSS Easy XML RSS creation and consumption. More plugins are appearing on CPAN all the time - just search for "Dancer::Plugin" to see what may have been released since this document was last updated! perl v5.14.2 2011-11-30 Dancer::Plugins(3pm)

Check Out this Related Man Page

Dancer::Response(3pm)					User Contributed Perl Documentation				     Dancer::Response(3pm)

Dancer::Response - Response object for Dancer SYNOPSIS
# create a new response object Dancer::Response->new( status => 200, content => 'this is my content' ); Dancer::SharedData->response->status; # 200 # fetch current response object my $response = Dancer::SharedData->response; # fetch the current status $response->status; # 200 # change the status $response->status(500); PUBLIC API
new Dancer::Response->new( status => 200, content => 'my content', headers => HTTP::Headers->new(...), ); create and return a new Dancer::Response object current my $response = Dancer::SharedData->response->current(); return the current Dancer::Response object, and reset the object exists if ($response->exists) { ... } test if the Dancer::Response object exists content # get the content my $content = $response->content; my $content = Dancer::SharedData->response->content; # set the content $response->content('my new content'); Dancer::SharedData->response->content('my new content'); set or get the content of the current response object status # get the status my $status = $response->status; my $status = Dancer::SharedData->response->status; # set the status $response->status(201); Dancer::SharedData->response->status(201); set or get the status of the current response object content_type # get the status my $ct = $response->content_type; my $ct = Dancer::SharedData->response->content_type; # set the status $response->content_type('application/json'); Dancer::SharedData->response->content_type('application/json'); set or get the status of the current response object pass $response->pass; Dancer::SharedData->response->pass; set the pass value to one for this response has_passed if ($response->has_passed) { ... } if (Dancer::SharedData->response->has_passed) { ... } test if the pass value is set to true halt Dancer::SharedData->response->halt(); $response->halt; halted if (Dancer::SharedData->response->halted) { ... } if ($response->halted) { ... } header # set the header $response->header('X-Foo' => 'bar'); Dancer::SharedData->response->header('X-Foo' => 'bar'); # get the header my $header = $response->header('X-Foo'); my $header = Dancer::SharedData->response->header('X-Foo'); get or set the value of a header headers $response->headers(HTTP::Headers->new(...)); Dancer::SharedData->response->headers(HTTP::Headers->new(...)); return the list of headers for the current response headers_to_array my $headers_psgi = $response->headers_to_array(); my $headers_psgi = Dancer::SharedData->response->headers_to_array(); this method is called before returning a PSGI response. It transforms the list of headers to an array reference. perl v5.14.2 2012-01-28 Dancer::Response(3pm)
Man Page

Featured Tech Videos