Perl 中的表单生成和验证

发布于 2024-10-09 23:24:35 字数 337 浏览 1 评论 0原文

我正在考虑创建一个基于网络的调查,我认为最好的方法是将问题和可能的答案描述为 json 或 yaml 文件。然后从那里生成表格(可能分散几页)。从同一个描述文件中,我可以导出输入验证的规则,然后我可以使用类似 Data:: FormValidator 来验证结果。

最后,我想将其插入基于 Dancer 的应用程序中。

我想知道 CPAN 上有哪些模块可以帮助做到这一点?

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 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?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

放低过去 2024-10-16 23:24:35

查看 HTML::FormFu。我还没有使用过它,但我从 Catalyst 社区听到了一些好消息,而且一些 Dancer 的东西似乎也在使用它。

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文