Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Debug Trait for the Perl Catalyst Framework that performs markup validation of generated content

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 lib
Octocat-spinner-32 t
Octocat-spinner-32 .gitignore
Octocat-spinner-32 Changes
Octocat-spinner-32 MANIFEST.SKIP
Octocat-spinner-32 Makefile.PL
Octocat-spinner-32 README
README
NAME
    Catalyst::TraitFor::View::MarkupValidation - Validates output and
    replaces it with an error report if not OK

SYNOPSIS
        package Catalyst::View::Validation;

        use Moose;
        use namespace::clean -except => 'meta';

        extends qw/Catalyst::View::TT/;
        with qw/Catalyst::TraitFor::View::MarkupValidation/;

        1;

DESCRIPTION
    This is a Role which which takes generated content that is ready for
    output and validates it. If there are errors it replaces the default
    output with an error report.

CAVEATS
    This is useful when you're developing your application, as it will
    identify validity errors in the markup. In production, however, the
    performance cost is likely to be too high, and throwing errors at users
    that browsers could probably recover from is unfriendly.

METHOD MODIFIERS
  after process

    Validates document and (in event of an error) replaces it with an error
    report.

TODO
    Make document types that get validated configurable
    Add line numbering to output
    Hyperlink from error to source
BUGS AND LIMITATIONS
    Please report any you find using RT.

    If URI to validation service is incorrect, shows error report w/ 0
    errors.
AUTHOR
    David Dorward (dorward) `<david@dorward.me.uk>'
LICENSE AND COPYRIGHT
    This module itself is copyright (c) 2009 David Dorward and is licensed
    under the same terms as Perl itself.

Something went wrong with that request. Please try again.