Revered keepers of wisdom,

after having written a couple of what the young folk would probably now call "web apps" mostly by hand, I have recently found Dancer and instantly fell in love with the amount of code I don't have to write anymore.

There remains one area, however, which seems to force me to repeat myself: form validation.

I have looked at some general solutions (HTML::FormFu which seemed a little much for what I wanted to do and Oogly) as well as some Dancer plugins (Dancer::Plugin::DataFu which seems to be based on Oogly and Dancer::Plugin::FormValidator where I seemed to be unable to read the documentation) but while they all seem to be nice solutions for server-side validation, I am looking for something that will allow me to specify some rules and enforce that set of rules on the server as well as on the client.

I think I have probably blatantly overlooked something there... Can anyone point me in the right direction?

Thanks!


In reply to Form validation - server-side (Dancer) and client-side (javascript) by pvbcharon

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.