NAME
Plack::Middleware::Pjax - PJAX for your Plack
VERSION
version 1.114400
SYNOPSIS
use Plack::Builder;
builder {
enable 'Plack::Middleware::Pjax';
$app
}
DESCRIPTION
Plack::Middleware::Pjax adds easy support for serving chromeless pages
in combination with jquery-pjax. For more information on what pjax is,
check the SEE ALSO links below.
It does this by filtering the generated response through
Marpa::R2::HTML. If the x-pjax http header is set, only the title and
InnerHTML of the pjax-container are sent to the client.
Although you take a small processing hit adding an html parsing pass
into the response cycle, using Plack::Middleware::Pjax saves you from
adding any view specific logic in your plack applications.
See demo/ in the dist directory for a plack port of