SYNOPSIS

DESCRIPTION

Most form helpers can automatically pick up previous input values and will show them as default. You can also use "param" in Mojolicious::Plugin::DefaultHelpers to set them manually and let necessary attributes always be generated automatically.

For fields that failed validation with "validation" in Mojolicious::Controller the field-with-error class will be automatically added through the tag_with_error helper, to make styling with CSS easier.

<input class="field-with-error" name="age" type="text" value="250" />

This is a core plugin, that means it is always enabled and its code a good example for learning how to build new plugins, you're welcome to fork it.