Skip Menu |

This queue is for tickets about the Mojolicious-Plugin-HTMLLint CPAN distribution.

Report information
The Basics
Id: 80172
Status: resolved
Priority: 0/
Queue: Mojolicious-Plugin-HTMLLint

People
Owner: Nobody in particular
Requestors: thaljef [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Wishlist
Broken in: (no value)
Fixed in: (no value)



I'd love an option to have this plugin throw an exception directly to the browser if the HTML isn't clean. Obviously, you wouldn't want to do this in production, so it shouldn't be the default behavior. But it would sure help those of us that really want to be strict about their HTML. Thanks for making this great little plugin. -- Jeffrey Thalhammer Imaginative Software Systems www.imaginative-software.com
<Added a subject to the ticket>
Done. I've added "on_errror" option. You can just pass own error handler $self->plugin('HTMLLint', on_error => sub { my ($c, $mes) = @_; $c->render_text($mes); }); or $self->plugin('HTMLLint', on_error => sub { my ($c, $mes) = @_; die $mes; }); Fixed bug: Recreating HTML::Lint object on each request because it does not reset own state