Viktor Turskyi > Mojolicious-Plugin-HTMLLint-0.02 > Mojolicious::Plugin::HTMLLint

Download:
Mojolicious-Plugin-HTMLLint-0.02.tar.gz

Dependencies

Annotate this POD

CPAN RT

Open  0
View/Report Bugs
Module Version: 0.02   Source   Latest Release: Mojolicious-Plugin-HTMLLint-0.04

NAME ^

Mojolicious::Plugin::HTMLLint - HTML::Lint support for Mojolicious

SYNOPSIS ^

  # Mojolicious
  $self->plugin('HTMLLint');
  
  # Mojolicious (skip errors that contain "placeholder" string)
  $self->plugin( 'HTMLLint', { skip => [ qr/placeholder/ ] } ); 

  # Mojolicious::Lite
  plugin 'HTMLLint';

DESCRIPTION ^

Mojolicious::Plugin::HTMLLint - allows you to validate HTML rendered by your application. The plugin uses HTML::Lint for validation. Errors will appear in Mojolicious log.

CONFIG ^

Config will be passed to HTML::Lint->new(); For support options see HTML::Lint

skip

  $app->plugin('HTMLLint', { skip => [ qr//, qr// ]} );

This options says what message not to show.

Register plugin in Mojolicious application.

TODO ^

Add tests

AUTHOR ^

Viktor Turskyi <koorchik@cpan.org>

BUGS ^

Please report any bugs or feature requests to Github https://github.com/koorchik/Mojolicious-Plugin-HTMLLint

SEE ALSO ^

Mojolicious, HTML::Lint, HTML::Tidy

syntax highlighting: