开发者

form generation and validation in Perl

开发者 https://www.devze.com 2023-02-01 14:41 出处:网络
I am thinking to create a web based survey and I thought the best way would be to describe the questions and the possible answers as a json or yaml file. Then generate the forms from there (possibly s

I am thinking to create a web based survey and I thought the best way would be to describe the questions and the possible answers as a json or yaml file. Then generate the forms from there (possibly spreading several pages). From the same description file I could derive the rules for input validation and then I could use something like Data::FormValidator to validate the results.

In开发者_如何学Python the end I'd like to plug this in a Dancer based application.

I wonder what modules are out there on CPAN that could help doing this?


Check out HTML::FormFu. I've not used it, but I hear good things from the Catalyst community, and some Dancer stuff seems to use it to.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号