HTML::FormHandler and JQuery Validator
=head1 VERSION
0.05
=cut
our $VERSION = '0.05';
use JSON;
use URI::Escape;
use Moose::Role;
=head1 SYNOPSIS
use HTML::FormHandler::Moose;
with HTML:
input type="hidden" id="validation_json" value="[% form.as_escaped_json %]">
<script>
var validationJSON = JSON.parse(decodeURIComponent($("#validation_json").val() ) );
$("#story_form")
tionJSON.rules,
highlight: function(label) {
$(label).closest('.control-group').addClass('error');
},
messages: validationJSON.me